Lines Matching refs:regmap
10 #include <linux/regmap.h>
200 struct regmap *regmap;
336 regmap_write(priv->regmap, 0x03, 0x04);
337 regmap_update_bits(priv->regmap, 0x52, RESETDB, 0x00);
344 regmap_write(priv->regmap, 0x03, 0x04);
345 regmap_update_bits(priv->regmap, 0x52, RESETDB, RESETDB);
361 regmap_write(priv->regmap, 0x03, 0x04);
364 regmap_write(priv->regmap, 0x52, 0x00);
366 regmap_write(priv->regmap, 0x52, RESETIB);
371 regmap_write(priv->regmap, 0x03, 0x00);
374 regmap_update_bits(priv->regmap, 0x07, DRI_PD | IO_PD, 0);
375 regmap_update_bits(priv->regmap, 0x08, DRI_PDDRI | PDDAC | PANEN, 0);
376 regmap_update_bits(priv->regmap, 0x09, DPD | GCKOFF |
378 regmap_update_bits(priv->regmap, 0x0a, HD_DVIB, 0);
381 regmap_write(priv->regmap, 0x0b, (mode->htotal >> 8) << 3 |
383 regmap_write(priv->regmap, 0x0c, mode->hdisplay);
384 regmap_write(priv->regmap, 0x0d, mode->htotal);
385 regmap_write(priv->regmap, 0x0e, (hsynclen >> 8) << 3 |
387 regmap_write(priv->regmap, 0x0f, hbporch);
388 regmap_write(priv->regmap, 0x10, hsynclen);
391 regmap_write(priv->regmap, 0x11, (mode->vtotal >> 8) << 3 |
393 regmap_write(priv->regmap, 0x12, mode->vdisplay);
394 regmap_write(priv->regmap, 0x13, mode->vtotal);
395 regmap_write(priv->regmap, 0x14, ((vsynclen >> 8) << 3) |
397 regmap_write(priv->regmap, 0x15, vbporch);
398 regmap_write(priv->regmap, 0x16, vsynclen);
401 regmap_update_bits(priv->regmap, 0x18, SWAP, BYTE_SWAP_BGR);
404 regmap_update_bits(priv->regmap, 0x19, 0x1, mode->clock >> 16);
405 regmap_update_bits(priv->regmap, 0x19, HPO_I | VPO_I | GCLKFREQ,
409 regmap_write(priv->regmap, 0x1a, mode->clock >> 8);
410 regmap_write(priv->regmap, 0x1b, mode->clock);
413 regmap_write(priv->regmap, 0x1f, (mode->htotal >> 8) << 3 |
415 regmap_write(priv->regmap, 0x20, mode->hdisplay);
416 regmap_write(priv->regmap, 0x21, mode->htotal);
419 regmap_write(priv->regmap, 0x25, (mode->vtotal >> 8) << 3 |
421 regmap_write(priv->regmap, 0x26, mode->vdisplay);
422 regmap_write(priv->regmap, 0x27, mode->vtotal);
425 regmap_update_bits(priv->regmap, 0x2b, VFMT, 9);
428 regmap_update_bits(priv->regmap, 0x2e, HPO_O | VPO_O,
433 regmap_update_bits(priv->regmap, 0x54, HWO_HDMI_HI | HOO_HDMI_HI,
436 regmap_write(priv->regmap, 0x55, hbporch);
437 regmap_write(priv->regmap, 0x56, hsynclen);
440 regmap_update_bits(priv->regmap, 0x57, VWO_HDMI_HI | VOO_HDMI_HI,
443 regmap_write(priv->regmap, 0x58, vbporch);
444 regmap_write(priv->regmap, 0x59, vsynclen);
447 regmap_update_bits(priv->regmap, 0x7e, HDMI_LVDS_SEL, HDMI_LVDS_SEL);
452 regmap_write(priv->regmap, 0x03, 0x01);
455 regmap_update_bits(priv->regmap, 0x07, CKINV, CKINV);
456 regmap_update_bits(priv->regmap, 0x08, DISPON, DISPON);
459 regmap_update_bits(priv->regmap, 0x0c, DRI_PLL_DIVSEL, DRI_PLL_DIVSEL);
461 regmap_update_bits(priv->regmap, 0x0c, DRI_PLL_N1_1 |
467 regmap_update_bits(priv->regmap, 0x0c, DRI_PLL_N1_1 |
474 regmap_update_bits(priv->regmap, 0x0c, DRI_PLL_N1_1 |
483 regmap_write(priv->regmap, 0x64, 0x29); /* LSB Blue */
484 regmap_write(priv->regmap, 0x65, 0x29); /* LSB Green */
485 regmap_write(priv->regmap, 0x66, 0x29); /* LSB Red */
486 regmap_write(priv->regmap, 0x67, 0x00); /* MSB Blue */
487 regmap_write(priv->regmap, 0x68, 0x00); /* MSB Green */
488 regmap_write(priv->regmap, 0x69, 0x00); /* MSB Red */
490 regmap_update_bits(priv->regmap, 0x6b, DRI_PD_SER, 0x00);
491 regmap_update_bits(priv->regmap, 0x6c, DRI_PLL_PD, 0x00);
496 regmap_write(priv->regmap, 0x03, 0x03);
499 regmap_update_bits(priv->regmap, 0x28, VGACLK_BP | HM_LV_SEL,
501 regmap_update_bits(priv->regmap, 0x2a, HDMICLK_BP | HDMI_BP,
507 regmap_write(priv->regmap, 0x03, 0x04);
510 regmap_write(priv->regmap, 0x10, mode->clock >> 16);
511 regmap_write(priv->regmap, 0x11, mode->clock >> 8);
512 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);