Lines Matching refs:tg
165 struct hdmi_tg_regs tg; member
170 struct hdmi_tg_regs tg; member
1418 const struct hdmi_tg_regs *tg = &hdata->mode_conf.conf.v13_conf.tg; in hdmi_v13_mode_apply() local
1450 hdmi_reg_writeb(hdata, HDMI_TG_H_FSZ_L, tg->h_fsz[0]); in hdmi_v13_mode_apply()
1451 hdmi_reg_writeb(hdata, HDMI_TG_H_FSZ_H, tg->h_fsz[1]); in hdmi_v13_mode_apply()
1452 hdmi_reg_writeb(hdata, HDMI_TG_HACT_ST_L, tg->hact_st[0]); in hdmi_v13_mode_apply()
1453 hdmi_reg_writeb(hdata, HDMI_TG_HACT_ST_H, tg->hact_st[1]); in hdmi_v13_mode_apply()
1454 hdmi_reg_writeb(hdata, HDMI_TG_HACT_SZ_L, tg->hact_sz[0]); in hdmi_v13_mode_apply()
1455 hdmi_reg_writeb(hdata, HDMI_TG_HACT_SZ_H, tg->hact_sz[1]); in hdmi_v13_mode_apply()
1456 hdmi_reg_writeb(hdata, HDMI_TG_V_FSZ_L, tg->v_fsz[0]); in hdmi_v13_mode_apply()
1457 hdmi_reg_writeb(hdata, HDMI_TG_V_FSZ_H, tg->v_fsz[1]); in hdmi_v13_mode_apply()
1458 hdmi_reg_writeb(hdata, HDMI_TG_VSYNC_L, tg->vsync[0]); in hdmi_v13_mode_apply()
1459 hdmi_reg_writeb(hdata, HDMI_TG_VSYNC_H, tg->vsync[1]); in hdmi_v13_mode_apply()
1460 hdmi_reg_writeb(hdata, HDMI_TG_VSYNC2_L, tg->vsync2[0]); in hdmi_v13_mode_apply()
1461 hdmi_reg_writeb(hdata, HDMI_TG_VSYNC2_H, tg->vsync2[1]); in hdmi_v13_mode_apply()
1462 hdmi_reg_writeb(hdata, HDMI_TG_VACT_ST_L, tg->vact_st[0]); in hdmi_v13_mode_apply()
1463 hdmi_reg_writeb(hdata, HDMI_TG_VACT_ST_H, tg->vact_st[1]); in hdmi_v13_mode_apply()
1464 hdmi_reg_writeb(hdata, HDMI_TG_VACT_SZ_L, tg->vact_sz[0]); in hdmi_v13_mode_apply()
1465 hdmi_reg_writeb(hdata, HDMI_TG_VACT_SZ_H, tg->vact_sz[1]); in hdmi_v13_mode_apply()
1466 hdmi_reg_writeb(hdata, HDMI_TG_FIELD_CHG_L, tg->field_chg[0]); in hdmi_v13_mode_apply()
1467 hdmi_reg_writeb(hdata, HDMI_TG_FIELD_CHG_H, tg->field_chg[1]); in hdmi_v13_mode_apply()
1468 hdmi_reg_writeb(hdata, HDMI_TG_VACT_ST2_L, tg->vact_st2[0]); in hdmi_v13_mode_apply()
1469 hdmi_reg_writeb(hdata, HDMI_TG_VACT_ST2_H, tg->vact_st2[1]); in hdmi_v13_mode_apply()
1470 hdmi_reg_writeb(hdata, HDMI_TG_VSYNC_TOP_HDMI_L, tg->vsync_top_hdmi[0]); in hdmi_v13_mode_apply()
1471 hdmi_reg_writeb(hdata, HDMI_TG_VSYNC_TOP_HDMI_H, tg->vsync_top_hdmi[1]); in hdmi_v13_mode_apply()
1472 hdmi_reg_writeb(hdata, HDMI_TG_VSYNC_BOT_HDMI_L, tg->vsync_bot_hdmi[0]); in hdmi_v13_mode_apply()
1473 hdmi_reg_writeb(hdata, HDMI_TG_VSYNC_BOT_HDMI_H, tg->vsync_bot_hdmi[1]); in hdmi_v13_mode_apply()
1474 hdmi_reg_writeb(hdata, HDMI_TG_FIELD_TOP_HDMI_L, tg->field_top_hdmi[0]); in hdmi_v13_mode_apply()
1475 hdmi_reg_writeb(hdata, HDMI_TG_FIELD_TOP_HDMI_H, tg->field_top_hdmi[1]); in hdmi_v13_mode_apply()
1476 hdmi_reg_writeb(hdata, HDMI_TG_FIELD_BOT_HDMI_L, tg->field_bot_hdmi[0]); in hdmi_v13_mode_apply()
1477 hdmi_reg_writeb(hdata, HDMI_TG_FIELD_BOT_HDMI_H, tg->field_bot_hdmi[1]); in hdmi_v13_mode_apply()
1502 const struct hdmi_tg_regs *tg = &hdata->mode_conf.conf.v14_conf.tg; in hdmi_v14_mode_apply() local
1607 hdmi_reg_writeb(hdata, HDMI_TG_H_FSZ_L, tg->h_fsz[0]); in hdmi_v14_mode_apply()
1608 hdmi_reg_writeb(hdata, HDMI_TG_H_FSZ_H, tg->h_fsz[1]); in hdmi_v14_mode_apply()
1609 hdmi_reg_writeb(hdata, HDMI_TG_HACT_ST_L, tg->hact_st[0]); in hdmi_v14_mode_apply()
1610 hdmi_reg_writeb(hdata, HDMI_TG_HACT_ST_H, tg->hact_st[1]); in hdmi_v14_mode_apply()
1611 hdmi_reg_writeb(hdata, HDMI_TG_HACT_SZ_L, tg->hact_sz[0]); in hdmi_v14_mode_apply()
1612 hdmi_reg_writeb(hdata, HDMI_TG_HACT_SZ_H, tg->hact_sz[1]); in hdmi_v14_mode_apply()
1613 hdmi_reg_writeb(hdata, HDMI_TG_V_FSZ_L, tg->v_fsz[0]); in hdmi_v14_mode_apply()
1614 hdmi_reg_writeb(hdata, HDMI_TG_V_FSZ_H, tg->v_fsz[1]); in hdmi_v14_mode_apply()
1615 hdmi_reg_writeb(hdata, HDMI_TG_VSYNC_L, tg->vsync[0]); in hdmi_v14_mode_apply()
1616 hdmi_reg_writeb(hdata, HDMI_TG_VSYNC_H, tg->vsync[1]); in hdmi_v14_mode_apply()
1617 hdmi_reg_writeb(hdata, HDMI_TG_VSYNC2_L, tg->vsync2[0]); in hdmi_v14_mode_apply()
1618 hdmi_reg_writeb(hdata, HDMI_TG_VSYNC2_H, tg->vsync2[1]); in hdmi_v14_mode_apply()
1619 hdmi_reg_writeb(hdata, HDMI_TG_VACT_ST_L, tg->vact_st[0]); in hdmi_v14_mode_apply()
1620 hdmi_reg_writeb(hdata, HDMI_TG_VACT_ST_H, tg->vact_st[1]); in hdmi_v14_mode_apply()
1621 hdmi_reg_writeb(hdata, HDMI_TG_VACT_SZ_L, tg->vact_sz[0]); in hdmi_v14_mode_apply()
1622 hdmi_reg_writeb(hdata, HDMI_TG_VACT_SZ_H, tg->vact_sz[1]); in hdmi_v14_mode_apply()
1623 hdmi_reg_writeb(hdata, HDMI_TG_FIELD_CHG_L, tg->field_chg[0]); in hdmi_v14_mode_apply()
1624 hdmi_reg_writeb(hdata, HDMI_TG_FIELD_CHG_H, tg->field_chg[1]); in hdmi_v14_mode_apply()
1625 hdmi_reg_writeb(hdata, HDMI_TG_VACT_ST2_L, tg->vact_st2[0]); in hdmi_v14_mode_apply()
1626 hdmi_reg_writeb(hdata, HDMI_TG_VACT_ST2_H, tg->vact_st2[1]); in hdmi_v14_mode_apply()
1627 hdmi_reg_writeb(hdata, HDMI_TG_VACT_ST3_L, tg->vact_st3[0]); in hdmi_v14_mode_apply()
1628 hdmi_reg_writeb(hdata, HDMI_TG_VACT_ST3_H, tg->vact_st3[1]); in hdmi_v14_mode_apply()
1629 hdmi_reg_writeb(hdata, HDMI_TG_VACT_ST4_L, tg->vact_st4[0]); in hdmi_v14_mode_apply()
1630 hdmi_reg_writeb(hdata, HDMI_TG_VACT_ST4_H, tg->vact_st4[1]); in hdmi_v14_mode_apply()
1631 hdmi_reg_writeb(hdata, HDMI_TG_VSYNC_TOP_HDMI_L, tg->vsync_top_hdmi[0]); in hdmi_v14_mode_apply()
1632 hdmi_reg_writeb(hdata, HDMI_TG_VSYNC_TOP_HDMI_H, tg->vsync_top_hdmi[1]); in hdmi_v14_mode_apply()
1633 hdmi_reg_writeb(hdata, HDMI_TG_VSYNC_BOT_HDMI_L, tg->vsync_bot_hdmi[0]); in hdmi_v14_mode_apply()
1634 hdmi_reg_writeb(hdata, HDMI_TG_VSYNC_BOT_HDMI_H, tg->vsync_bot_hdmi[1]); in hdmi_v14_mode_apply()
1635 hdmi_reg_writeb(hdata, HDMI_TG_FIELD_TOP_HDMI_L, tg->field_top_hdmi[0]); in hdmi_v14_mode_apply()
1636 hdmi_reg_writeb(hdata, HDMI_TG_FIELD_TOP_HDMI_H, tg->field_top_hdmi[1]); in hdmi_v14_mode_apply()
1637 hdmi_reg_writeb(hdata, HDMI_TG_FIELD_BOT_HDMI_L, tg->field_bot_hdmi[0]); in hdmi_v14_mode_apply()
1638 hdmi_reg_writeb(hdata, HDMI_TG_FIELD_BOT_HDMI_H, tg->field_bot_hdmi[1]); in hdmi_v14_mode_apply()
1639 hdmi_reg_writeb(hdata, HDMI_TG_3D, tg->tg_3d[0]); in hdmi_v14_mode_apply()
1796 struct hdmi_tg_regs *tg = &hdata->mode_conf.conf.v13_conf.tg; in hdmi_v13_mode_set() local
1849 hdmi_set_reg(tg->vact_st, 2, (m->vtotal - m->vdisplay) / 2); in hdmi_v13_mode_set()
1850 hdmi_set_reg(tg->vact_sz, 2, m->vdisplay / 2); in hdmi_v13_mode_set()
1852 hdmi_set_reg(tg->vact_st2, 2, 0x249);/* Reset value + 1*/ in hdmi_v13_mode_set()
1868 hdmi_set_reg(tg->vact_st, 2, m->vtotal - m->vdisplay); in hdmi_v13_mode_set()
1869 hdmi_set_reg(tg->vact_sz, 2, m->vdisplay); in hdmi_v13_mode_set()
1870 hdmi_set_reg(tg->vact_st2, 2, 0x248); /* Reset value */ in hdmi_v13_mode_set()
1874 hdmi_set_reg(tg->cmd, 1, 0x0); in hdmi_v13_mode_set()
1875 hdmi_set_reg(tg->h_fsz, 2, m->htotal); in hdmi_v13_mode_set()
1876 hdmi_set_reg(tg->hact_st, 2, m->htotal - m->hdisplay); in hdmi_v13_mode_set()
1877 hdmi_set_reg(tg->hact_sz, 2, m->hdisplay); in hdmi_v13_mode_set()
1878 hdmi_set_reg(tg->v_fsz, 2, m->vtotal); in hdmi_v13_mode_set()
1879 hdmi_set_reg(tg->vsync, 2, 0x1); in hdmi_v13_mode_set()
1880 hdmi_set_reg(tg->vsync2, 2, 0x233); /* Reset value */ in hdmi_v13_mode_set()
1881 hdmi_set_reg(tg->field_chg, 2, 0x233); /* Reset value */ in hdmi_v13_mode_set()
1882 hdmi_set_reg(tg->vsync_top_hdmi, 2, 0x1); /* Reset value */ in hdmi_v13_mode_set()
1883 hdmi_set_reg(tg->vsync_bot_hdmi, 2, 0x233); /* Reset value */ in hdmi_v13_mode_set()
1884 hdmi_set_reg(tg->field_top_hdmi, 2, 0x1); /* Reset value */ in hdmi_v13_mode_set()
1885 hdmi_set_reg(tg->field_bot_hdmi, 2, 0x233); /* Reset value */ in hdmi_v13_mode_set()
1886 hdmi_set_reg(tg->tg_3d, 1, 0x0); /* Not used */ in hdmi_v13_mode_set()
1892 struct hdmi_tg_regs *tg = &hdata->mode_conf.conf.v14_conf.tg; in hdmi_v14_mode_set() local
1934 hdmi_set_reg(tg->vact_st, 2, (m->vtotal - m->vdisplay) / 2); in hdmi_v14_mode_set()
1935 hdmi_set_reg(tg->vact_sz, 2, m->vdisplay / 2); in hdmi_v14_mode_set()
1936 hdmi_set_reg(tg->vact_st2, 2, m->vtotal - m->vdisplay / 2); in hdmi_v14_mode_set()
1937 hdmi_set_reg(tg->vsync2, 2, (m->vtotal / 2) + 1); in hdmi_v14_mode_set()
1938 hdmi_set_reg(tg->vsync_bot_hdmi, 2, (m->vtotal / 2) + 1); in hdmi_v14_mode_set()
1939 hdmi_set_reg(tg->field_bot_hdmi, 2, (m->vtotal / 2) + 1); in hdmi_v14_mode_set()
1940 hdmi_set_reg(tg->vact_st3, 2, 0x0); in hdmi_v14_mode_set()
1941 hdmi_set_reg(tg->vact_st4, 2, 0x0); in hdmi_v14_mode_set()
1956 hdmi_set_reg(tg->vact_st, 2, m->vtotal - m->vdisplay); in hdmi_v14_mode_set()
1957 hdmi_set_reg(tg->vact_sz, 2, m->vdisplay); in hdmi_v14_mode_set()
1958 hdmi_set_reg(tg->vact_st2, 2, 0x248); /* Reset value */ in hdmi_v14_mode_set()
1959 hdmi_set_reg(tg->vact_st3, 2, 0x47b); /* Reset value */ in hdmi_v14_mode_set()
1960 hdmi_set_reg(tg->vact_st4, 2, 0x6ae); /* Reset value */ in hdmi_v14_mode_set()
1961 hdmi_set_reg(tg->vsync2, 2, 0x233); /* Reset value */ in hdmi_v14_mode_set()
1962 hdmi_set_reg(tg->vsync_bot_hdmi, 2, 0x233); /* Reset value */ in hdmi_v14_mode_set()
1963 hdmi_set_reg(tg->field_bot_hdmi, 2, 0x233); /* Reset value */ in hdmi_v14_mode_set()
1989 hdmi_set_reg(tg->cmd, 1, 0x0); in hdmi_v14_mode_set()
1990 hdmi_set_reg(tg->h_fsz, 2, m->htotal); in hdmi_v14_mode_set()
1991 hdmi_set_reg(tg->hact_st, 2, m->htotal - m->hdisplay); in hdmi_v14_mode_set()
1992 hdmi_set_reg(tg->hact_sz, 2, m->hdisplay); in hdmi_v14_mode_set()
1993 hdmi_set_reg(tg->v_fsz, 2, m->vtotal); in hdmi_v14_mode_set()
1994 hdmi_set_reg(tg->vsync, 2, 0x1); in hdmi_v14_mode_set()
1995 hdmi_set_reg(tg->field_chg, 2, 0x233); /* Reset value */ in hdmi_v14_mode_set()
1996 hdmi_set_reg(tg->vsync_top_hdmi, 2, 0x1); /* Reset value */ in hdmi_v14_mode_set()
1997 hdmi_set_reg(tg->field_top_hdmi, 2, 0x1); /* Reset value */ in hdmi_v14_mode_set()
1998 hdmi_set_reg(tg->tg_3d, 1, 0x0); in hdmi_v14_mode_set()