Lines Matching refs:hdmi
27 struct hdmi *hdmi; member
255 struct hdmi *hdmi = phy_8960->hdmi; in hdmi_pll_enable() local
262 hdmi_write(hdmi, REG_HDMI_8960_PHY_PLL_LOCKDET_CFG2, 0x8d); in hdmi_pll_enable()
263 hdmi_write(hdmi, REG_HDMI_8960_PHY_PLL_LOCKDET_CFG0, 0x10); in hdmi_pll_enable()
264 hdmi_write(hdmi, REG_HDMI_8960_PHY_PLL_LOCKDET_CFG1, 0x1a); in hdmi_pll_enable()
274 hdmi_write(hdmi, REG_HDMI_8960_PHY_PLL_LOCKDET_CFG2, 0x0d); in hdmi_pll_enable()
276 val = hdmi_read(hdmi, REG_HDMI_8960_PHY_REG12); in hdmi_pll_enable()
279 hdmi_write(hdmi, REG_HDMI_8960_PHY_REG12, val); in hdmi_pll_enable()
287 hdmi_write(hdmi, REG_HDMI_8960_PHY_REG12, val); in hdmi_pll_enable()
288 hdmi_write(hdmi, REG_HDMI_8960_PHY_REG2, 0x3f); in hdmi_pll_enable()
290 val = hdmi_read(hdmi, REG_HDMI_8960_PHY_REG12); in hdmi_pll_enable()
292 hdmi_write(hdmi, REG_HDMI_8960_PHY_REG12, val); in hdmi_pll_enable()
297 val = hdmi_read(hdmi, REG_HDMI_8960_PHY_PLL_PWRDN_B); in hdmi_pll_enable()
300 hdmi_write(hdmi, REG_HDMI_8960_PHY_PLL_PWRDN_B, val); in hdmi_pll_enable()
301 hdmi_write(hdmi, REG_HDMI_8960_PHY_REG2, 0x80); in hdmi_pll_enable()
307 val = hdmi_read(hdmi, REG_HDMI_8960_PHY_PLL_STATUS0); in hdmi_pll_enable()
321 hdmi_write(hdmi, REG_HDMI_8960_PHY_PLL_LOCKDET_CFG2, 0x8d); in hdmi_pll_enable()
323 hdmi_write(hdmi, REG_HDMI_8960_PHY_PLL_LOCKDET_CFG2, 0x0d); in hdmi_pll_enable()
340 struct hdmi *hdmi = phy_8960->hdmi; in hdmi_pll_disable() local
345 val = hdmi_read(hdmi, REG_HDMI_8960_PHY_REG12); in hdmi_pll_disable()
347 hdmi_write(hdmi, REG_HDMI_8960_PHY_REG12, val); in hdmi_pll_disable()
349 val = hdmi_read(hdmi, REG_HDMI_8960_PHY_PLL_PWRDN_B); in hdmi_pll_disable()
352 hdmi_write(hdmi, REG_HDMI_8960_PHY_PLL_PWRDN_B, val); in hdmi_pll_disable()
384 struct hdmi *hdmi = phy_8960->hdmi; in hdmi_pll_set_rate() local
391 hdmi_write(hdmi, pll_rate->conf[i].reg, pll_rate->conf[i].val); in hdmi_pll_set_rate()
432 struct hdmi *hdmi = phy_8960->hdmi; in hdmi_phy_8960_reset() local
435 val = hdmi_read(hdmi, REG_HDMI_PHY_CTRL); in hdmi_phy_8960_reset()
439 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in hdmi_phy_8960_reset()
443 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in hdmi_phy_8960_reset()
449 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in hdmi_phy_8960_reset()
453 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in hdmi_phy_8960_reset()
461 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in hdmi_phy_8960_reset()
465 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in hdmi_phy_8960_reset()
471 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in hdmi_phy_8960_reset()
475 hdmi_write(hdmi, REG_HDMI_PHY_CTRL, in hdmi_phy_8960_reset()
484 struct hdmi *hdmi = phy_8960->hdmi; in hdmi_phy_8960_powerup() local
488 hdmi_write(hdmi, REG_HDMI_8960_PHY_REG2, 0x00); in hdmi_phy_8960_powerup()
489 hdmi_write(hdmi, REG_HDMI_8960_PHY_REG0, 0x1b); in hdmi_phy_8960_powerup()
490 hdmi_write(hdmi, REG_HDMI_8960_PHY_REG1, 0xf2); in hdmi_phy_8960_powerup()
491 hdmi_write(hdmi, REG_HDMI_8960_PHY_REG4, 0x00); in hdmi_phy_8960_powerup()
492 hdmi_write(hdmi, REG_HDMI_8960_PHY_REG5, 0x00); in hdmi_phy_8960_powerup()
493 hdmi_write(hdmi, REG_HDMI_8960_PHY_REG6, 0x00); in hdmi_phy_8960_powerup()
494 hdmi_write(hdmi, REG_HDMI_8960_PHY_REG7, 0x00); in hdmi_phy_8960_powerup()
495 hdmi_write(hdmi, REG_HDMI_8960_PHY_REG8, 0x00); in hdmi_phy_8960_powerup()
496 hdmi_write(hdmi, REG_HDMI_8960_PHY_REG9, 0x00); in hdmi_phy_8960_powerup()
497 hdmi_write(hdmi, REG_HDMI_8960_PHY_REG10, 0x00); in hdmi_phy_8960_powerup()
498 hdmi_write(hdmi, REG_HDMI_8960_PHY_REG11, 0x00); in hdmi_phy_8960_powerup()
499 hdmi_write(hdmi, REG_HDMI_8960_PHY_REG3, 0x20); in hdmi_phy_8960_powerup()
505 struct hdmi *hdmi = phy_8960->hdmi; in hdmi_phy_8960_powerdown() local
509 hdmi_write(hdmi, REG_HDMI_8960_PHY_REG2, 0x7f); in hdmi_phy_8960_powerdown()
519 struct hdmi_phy *hdmi_phy_8960_init(struct hdmi *hdmi) in hdmi_phy_8960_init() argument
543 phy_8960->hdmi = hdmi; in hdmi_phy_8960_init()
547 phy_8960->pll = devm_clk_register(&hdmi->pdev->dev, &phy_8960->pll_hw); in hdmi_phy_8960_init()