Lines Matching refs:regmap

11 #include <linux/regmap.h>
201 struct regmap *regmap;
337 regmap_write(priv->regmap, 0x03, 0x04);
338 regmap_update_bits(priv->regmap, 0x52, RESETDB, 0x00);
345 regmap_write(priv->regmap, 0x03, 0x04);
346 regmap_update_bits(priv->regmap, 0x52, RESETDB, RESETDB);
362 regmap_write(priv->regmap, 0x03, 0x04);
365 regmap_write(priv->regmap, 0x52, 0x00);
367 regmap_write(priv->regmap, 0x52, RESETIB);
372 regmap_write(priv->regmap, 0x03, 0x00);
375 regmap_update_bits(priv->regmap, 0x07, DRI_PD | IO_PD, 0);
376 regmap_update_bits(priv->regmap, 0x08, DRI_PDDRI | PDDAC | PANEN, 0);
377 regmap_update_bits(priv->regmap, 0x09, DPD | GCKOFF |
379 regmap_update_bits(priv->regmap, 0x0a, HD_DVIB, 0);
382 regmap_write(priv->regmap, 0x0b, (mode->htotal >> 8) << 3 |
384 regmap_write(priv->regmap, 0x0c, mode->hdisplay);
385 regmap_write(priv->regmap, 0x0d, mode->htotal);
386 regmap_write(priv->regmap, 0x0e, (hsynclen >> 8) << 3 |
388 regmap_write(priv->regmap, 0x0f, hbporch);
389 regmap_write(priv->regmap, 0x10, hsynclen);
392 regmap_write(priv->regmap, 0x11, (mode->vtotal >> 8) << 3 |
394 regmap_write(priv->regmap, 0x12, mode->vdisplay);
395 regmap_write(priv->regmap, 0x13, mode->vtotal);
396 regmap_write(priv->regmap, 0x14, ((vsynclen >> 8) << 3) |
398 regmap_write(priv->regmap, 0x15, vbporch);
399 regmap_write(priv->regmap, 0x16, vsynclen);
402 regmap_update_bits(priv->regmap, 0x18, SWAP, BYTE_SWAP_BGR);
405 regmap_update_bits(priv->regmap, 0x19, 0x1, mode->clock >> 16);
406 regmap_update_bits(priv->regmap, 0x19, HPO_I | VPO_I | GCLKFREQ,
410 regmap_write(priv->regmap, 0x1a, mode->clock >> 8);
411 regmap_write(priv->regmap, 0x1b, mode->clock);
414 regmap_write(priv->regmap, 0x1f, (mode->htotal >> 8) << 3 |
416 regmap_write(priv->regmap, 0x20, mode->hdisplay);
417 regmap_write(priv->regmap, 0x21, mode->htotal);
420 regmap_write(priv->regmap, 0x25, (mode->vtotal >> 8) << 3 |
422 regmap_write(priv->regmap, 0x26, mode->vdisplay);
423 regmap_write(priv->regmap, 0x27, mode->vtotal);
426 regmap_update_bits(priv->regmap, 0x2b, VFMT, 9);
429 regmap_update_bits(priv->regmap, 0x2e, HPO_O | VPO_O,
434 regmap_update_bits(priv->regmap, 0x54, HWO_HDMI_HI | HOO_HDMI_HI,
437 regmap_write(priv->regmap, 0x55, hbporch);
438 regmap_write(priv->regmap, 0x56, hsynclen);
441 regmap_update_bits(priv->regmap, 0x57, VWO_HDMI_HI | VOO_HDMI_HI,
444 regmap_write(priv->regmap, 0x58, vbporch);
445 regmap_write(priv->regmap, 0x59, vsynclen);
448 regmap_update_bits(priv->regmap, 0x7e, HDMI_LVDS_SEL, HDMI_LVDS_SEL);
453 regmap_write(priv->regmap, 0x03, 0x01);
456 regmap_update_bits(priv->regmap, 0x07, CKINV, CKINV);
457 regmap_update_bits(priv->regmap, 0x08, DISPON, DISPON);
460 regmap_update_bits(priv->regmap, 0x0c, DRI_PLL_DIVSEL, DRI_PLL_DIVSEL);
462 regmap_update_bits(priv->regmap, 0x0c, DRI_PLL_N1_1 |
468 regmap_update_bits(priv->regmap, 0x0c, DRI_PLL_N1_1 |
475 regmap_update_bits(priv->regmap, 0x0c, DRI_PLL_N1_1 |
484 regmap_write(priv->regmap, 0x64, 0x29); /* LSB Blue */
485 regmap_write(priv->regmap, 0x65, 0x29); /* LSB Green */
486 regmap_write(priv->regmap, 0x66, 0x29); /* LSB Red */
487 regmap_write(priv->regmap, 0x67, 0x00); /* MSB Blue */
488 regmap_write(priv->regmap, 0x68, 0x00); /* MSB Green */
489 regmap_write(priv->regmap, 0x69, 0x00); /* MSB Red */
491 regmap_update_bits(priv->regmap, 0x6b, DRI_PD_SER, 0x00);
492 regmap_update_bits(priv->regmap, 0x6c, DRI_PLL_PD, 0x00);
497 regmap_write(priv->regmap, 0x03, 0x03);
500 regmap_update_bits(priv->regmap, 0x28, VGACLK_BP | HM_LV_SEL,
502 regmap_update_bits(priv->regmap, 0x2a, HDMICLK_BP | HDMI_BP,
508 regmap_write(priv->regmap, 0x03, 0x04);
511 regmap_write(priv->regmap, 0x10, mode->clock >> 16);
512 regmap_write(priv->regmap, 0x11, mode->clock >> 8);
513 regmap_write(priv->regmap, 0x12, mode->clock);
549 priv->regmap = devm_regmap_init_i2c(client, &ch7033_regmap_config);
550 if (IS_ERR(priv->regmap)) {
551 dev_err(&client->dev, "regmap init failed\n");
552 return PTR_ERR(priv->regmap);
555 ret = regmap_read(priv->regmap, 0x00, &val);
565 regmap_write(priv->regmap, 0x03, 0x04);
566 ret = regmap_read(priv->regmap, 0x51, &val);