Lines Matching refs:writel_relaxed

1046 	writel_relaxed(0, priv->io_base + _REG(ENCI_VIDEO_EN));  in meson_venc_hdmi_mode_set()
1047 writel_relaxed(0, priv->io_base + _REG(ENCP_VIDEO_EN)); in meson_venc_hdmi_mode_set()
1054 writel_relaxed(ENCI_CFILT_CMPT_SEL_HIGH | 0x10, in meson_venc_hdmi_mode_set()
1056 writel_relaxed(ENCI_CFILT_CMPT_CR_DLY(2) | in meson_venc_hdmi_mode_set()
1061 writel_relaxed(0, priv->io_base + _REG(VENC_DVI_SETTING)); in meson_venc_hdmi_mode_set()
1064 writel_relaxed(0, priv->io_base + _REG(ENCI_VIDEO_MODE)); in meson_venc_hdmi_mode_set()
1065 writel_relaxed(0, priv->io_base + _REG(ENCI_VIDEO_MODE_ADV)); in meson_venc_hdmi_mode_set()
1068 writel_relaxed(vmode->enci.hso_begin, in meson_venc_hdmi_mode_set()
1070 writel_relaxed(vmode->enci.hso_end, in meson_venc_hdmi_mode_set()
1074 writel_relaxed(vmode->enci.vso_even, in meson_venc_hdmi_mode_set()
1076 writel_relaxed(vmode->enci.vso_odd, in meson_venc_hdmi_mode_set()
1080 writel_relaxed(ENCI_MACV_MAX_AMP_ENABLE_CHANGE | in meson_venc_hdmi_mode_set()
1085 writel_relaxed(vmode->enci.video_prog_mode, in meson_venc_hdmi_mode_set()
1087 writel_relaxed(vmode->enci.video_mode, in meson_venc_hdmi_mode_set()
1099 writel_relaxed(ENCI_VIDEO_MODE_ADV_DMXMD(2) | in meson_venc_hdmi_mode_set()
1108 writel_relaxed(0x07, priv->io_base + _REG(ENCI_SYNC_MODE)); in meson_venc_hdmi_mode_set()
1111 writel_relaxed(vmode->enci.yc_delay, in meson_venc_hdmi_mode_set()
1116 writel_relaxed(0, priv->io_base + _REG(ENCI_DBG_PX_RST)); in meson_venc_hdmi_mode_set()
1126 writel_relaxed(ENCI_VFIFO2VD_CTL_ENABLE | in meson_venc_hdmi_mode_set()
1131 writel_relaxed(vmode->enci.pixel_start, in meson_venc_hdmi_mode_set()
1133 writel_relaxed(vmode->enci.pixel_end, in meson_venc_hdmi_mode_set()
1136 writel_relaxed(vmode->enci.top_field_line_start, in meson_venc_hdmi_mode_set()
1138 writel_relaxed(vmode->enci.top_field_line_end, in meson_venc_hdmi_mode_set()
1141 writel_relaxed(vmode->enci.bottom_field_line_start, in meson_venc_hdmi_mode_set()
1143 writel_relaxed(vmode->enci.bottom_field_line_end, in meson_venc_hdmi_mode_set()
1150 writel_relaxed(ENCI_VIDEO_EN_ENABLE, in meson_venc_hdmi_mode_set()
1163 writel_relaxed(de_h_begin, in meson_venc_hdmi_mode_set()
1165 writel_relaxed(de_h_end, in meson_venc_hdmi_mode_set()
1175 writel_relaxed(de_v_begin_even, in meson_venc_hdmi_mode_set()
1177 writel_relaxed(de_v_end_even, in meson_venc_hdmi_mode_set()
1179 writel_relaxed(de_v_begin_odd, in meson_venc_hdmi_mode_set()
1181 writel_relaxed(de_v_end_odd, in meson_venc_hdmi_mode_set()
1196 writel_relaxed(hs_begin, in meson_venc_hdmi_mode_set()
1198 writel_relaxed(hs_end, in meson_venc_hdmi_mode_set()
1209 writel_relaxed(vs_bline_evn, in meson_venc_hdmi_mode_set()
1212 writel_relaxed(vs_eline_evn, in meson_venc_hdmi_mode_set()
1215 writel_relaxed(hs_begin, in meson_venc_hdmi_mode_set()
1217 writel_relaxed(hs_begin, in meson_venc_hdmi_mode_set()
1224 writel_relaxed(vs_bline_odd, in meson_venc_hdmi_mode_set()
1227 writel_relaxed(hs_begin, in meson_venc_hdmi_mode_set()
1235 writel_relaxed(vs_eline_evn, priv->io_base in meson_venc_hdmi_mode_set()
1238 writel_relaxed(hs_begin, priv->io_base in meson_venc_hdmi_mode_set()
1244 writel_relaxed(vs_eline_odd, priv->io_base in meson_venc_hdmi_mode_set()
1247 writel_relaxed(hs_begin, priv->io_base in meson_venc_hdmi_mode_set()
1259 writel_relaxed(vs_bline_odd, in meson_venc_hdmi_mode_set()
1262 writel_relaxed(vs_eline_odd, in meson_venc_hdmi_mode_set()
1269 writel_relaxed(vso_begin_odd, in meson_venc_hdmi_mode_set()
1271 writel_relaxed(vso_begin_odd, in meson_venc_hdmi_mode_set()
1277 writel_relaxed(vs_bline_evn, in meson_venc_hdmi_mode_set()
1284 writel_relaxed(vso_begin_evn, priv->io_base in meson_venc_hdmi_mode_set()
1292 writel_relaxed(vs_eline_odd, priv->io_base in meson_venc_hdmi_mode_set()
1295 writel_relaxed(vso_begin_evn, priv->io_base in meson_venc_hdmi_mode_set()
1300 writel_relaxed(vs_eline_evn, priv->io_base in meson_venc_hdmi_mode_set()
1303 writel_relaxed(vso_begin_evn, priv->io_base in meson_venc_hdmi_mode_set()
1308 writel_relaxed(vmode->encp.dvi_settings, in meson_venc_hdmi_mode_set()
1310 writel_relaxed(vmode->encp.video_mode, in meson_venc_hdmi_mode_set()
1312 writel_relaxed(vmode->encp.video_mode_adv, in meson_venc_hdmi_mode_set()
1315 writel_relaxed(vmode->encp.video_prog_mode, in meson_venc_hdmi_mode_set()
1318 writel_relaxed(vmode->encp.video_sync_mode, in meson_venc_hdmi_mode_set()
1321 writel_relaxed(vmode->encp.video_yc_dly, in meson_venc_hdmi_mode_set()
1324 writel_relaxed(vmode->encp.video_rgb_ctrl, in meson_venc_hdmi_mode_set()
1327 writel_relaxed(vmode->encp.video_filt_ctrl, in meson_venc_hdmi_mode_set()
1330 writel_relaxed(vmode->encp.video_ofld_voav_ofst, in meson_venc_hdmi_mode_set()
1333 writel_relaxed(vmode->encp.yfp1_htime, in meson_venc_hdmi_mode_set()
1335 writel_relaxed(vmode->encp.yfp2_htime, in meson_venc_hdmi_mode_set()
1337 writel_relaxed(vmode->encp.max_pxcnt, in meson_venc_hdmi_mode_set()
1339 writel_relaxed(vmode->encp.hspuls_begin, in meson_venc_hdmi_mode_set()
1341 writel_relaxed(vmode->encp.hspuls_end, in meson_venc_hdmi_mode_set()
1343 writel_relaxed(vmode->encp.hspuls_switch, in meson_venc_hdmi_mode_set()
1345 writel_relaxed(vmode->encp.vspuls_begin, in meson_venc_hdmi_mode_set()
1347 writel_relaxed(vmode->encp.vspuls_end, in meson_venc_hdmi_mode_set()
1349 writel_relaxed(vmode->encp.vspuls_bline, in meson_venc_hdmi_mode_set()
1351 writel_relaxed(vmode->encp.vspuls_eline, in meson_venc_hdmi_mode_set()
1354 writel_relaxed(vmode->encp.eqpuls_begin, in meson_venc_hdmi_mode_set()
1357 writel_relaxed(vmode->encp.eqpuls_end, in meson_venc_hdmi_mode_set()
1360 writel_relaxed(vmode->encp.eqpuls_bline, in meson_venc_hdmi_mode_set()
1363 writel_relaxed(vmode->encp.eqpuls_eline, in meson_venc_hdmi_mode_set()
1365 writel_relaxed(vmode->encp.havon_begin, in meson_venc_hdmi_mode_set()
1367 writel_relaxed(vmode->encp.havon_end, in meson_venc_hdmi_mode_set()
1369 writel_relaxed(vmode->encp.vavon_bline, in meson_venc_hdmi_mode_set()
1371 writel_relaxed(vmode->encp.vavon_eline, in meson_venc_hdmi_mode_set()
1373 writel_relaxed(vmode->encp.hso_begin, in meson_venc_hdmi_mode_set()
1375 writel_relaxed(vmode->encp.hso_end, in meson_venc_hdmi_mode_set()
1377 writel_relaxed(vmode->encp.vso_begin, in meson_venc_hdmi_mode_set()
1379 writel_relaxed(vmode->encp.vso_end, in meson_venc_hdmi_mode_set()
1381 writel_relaxed(vmode->encp.vso_bline, in meson_venc_hdmi_mode_set()
1384 writel_relaxed(vmode->encp.vso_eline, in meson_venc_hdmi_mode_set()
1387 writel_relaxed(vmode->encp.sy_val, in meson_venc_hdmi_mode_set()
1390 writel_relaxed(vmode->encp.sy2_val, in meson_venc_hdmi_mode_set()
1392 writel_relaxed(vmode->encp.max_lncnt, in meson_venc_hdmi_mode_set()
1395 writel_relaxed(1, priv->io_base + _REG(ENCP_VIDEO_EN)); in meson_venc_hdmi_mode_set()
1410 writel_relaxed(de_h_begin, in meson_venc_hdmi_mode_set()
1412 writel_relaxed(de_h_end, in meson_venc_hdmi_mode_set()
1424 writel_relaxed(de_v_begin_even, in meson_venc_hdmi_mode_set()
1426 writel_relaxed(de_v_end_even, in meson_venc_hdmi_mode_set()
1439 writel_relaxed(de_v_begin_odd, in meson_venc_hdmi_mode_set()
1441 writel_relaxed(de_v_end_odd, in meson_venc_hdmi_mode_set()
1460 writel_relaxed(hs_begin, in meson_venc_hdmi_mode_set()
1462 writel_relaxed(hs_end, in meson_venc_hdmi_mode_set()
1482 writel_relaxed(vs_bline_evn, in meson_venc_hdmi_mode_set()
1484 writel_relaxed(vs_eline_evn, in meson_venc_hdmi_mode_set()
1488 writel_relaxed(vso_begin_evn, in meson_venc_hdmi_mode_set()
1490 writel_relaxed(vso_begin_evn, in meson_venc_hdmi_mode_set()
1504 writel_relaxed(vs_bline_odd, in meson_venc_hdmi_mode_set()
1506 writel_relaxed(vs_eline_odd, in meson_venc_hdmi_mode_set()
1508 writel_relaxed(vso_begin_odd, in meson_venc_hdmi_mode_set()
1510 writel_relaxed(vso_begin_odd, in meson_venc_hdmi_mode_set()
1550 writel_relaxed(reg, priv->io_base + _REG(VPU_HDMI_SETTING)); in meson_venc_hdmi_mode_set()
1569 writel_relaxed(ENCI_CFILT_CMPT_SEL_HIGH | 0x10, in meson_venci_cvbs_mode_set()
1571 writel_relaxed(ENCI_CFILT_CMPT_CR_DLY(2) | in meson_venci_cvbs_mode_set()
1576 writel_relaxed(0, priv->io_base + _REG(VENC_DVI_SETTING)); in meson_venci_cvbs_mode_set()
1579 writel_relaxed(0, priv->io_base + _REG(ENCI_VIDEO_MODE)); in meson_venci_cvbs_mode_set()
1580 writel_relaxed(0, priv->io_base + _REG(ENCI_VIDEO_MODE_ADV)); in meson_venci_cvbs_mode_set()
1583 writel_relaxed(mode->hso_begin, in meson_venci_cvbs_mode_set()
1585 writel_relaxed(mode->hso_end, in meson_venci_cvbs_mode_set()
1589 writel_relaxed(mode->vso_even, in meson_venci_cvbs_mode_set()
1591 writel_relaxed(mode->vso_odd, in meson_venci_cvbs_mode_set()
1595 writel_relaxed(ENCI_MACV_MAX_AMP_ENABLE_CHANGE | in meson_venci_cvbs_mode_set()
1600 writel_relaxed(mode->video_prog_mode, in meson_venci_cvbs_mode_set()
1602 writel_relaxed(mode->video_mode, in meson_venci_cvbs_mode_set()
1614 writel_relaxed(ENCI_VIDEO_MODE_ADV_DMXMD(2) | in meson_venci_cvbs_mode_set()
1622 writel_relaxed(0x07, priv->io_base + _REG(ENCI_SYNC_MODE)); in meson_venci_cvbs_mode_set()
1625 writel_relaxed(mode->yc_delay, priv->io_base + _REG(ENCI_YC_DELAY)); in meson_venci_cvbs_mode_set()
1628 writel_relaxed(mode->pixel_start, in meson_venci_cvbs_mode_set()
1630 writel_relaxed(mode->pixel_end, in meson_venci_cvbs_mode_set()
1633 writel_relaxed(mode->top_field_line_start, in meson_venci_cvbs_mode_set()
1635 writel_relaxed(mode->top_field_line_end, in meson_venci_cvbs_mode_set()
1638 writel_relaxed(mode->bottom_field_line_start, in meson_venci_cvbs_mode_set()
1640 writel_relaxed(mode->bottom_field_line_end, in meson_venci_cvbs_mode_set()
1644 writel_relaxed(0, priv->io_base + _REG(VENC_SYNC_ROUTE)); in meson_venci_cvbs_mode_set()
1647 writel_relaxed(0, priv->io_base + _REG(ENCI_DBG_PX_RST)); in meson_venci_cvbs_mode_set()
1657 writel_relaxed(ENCI_VFIFO2VD_CTL_ENABLE | in meson_venci_cvbs_mode_set()
1662 writel_relaxed(0, priv->io_base + _REG(VENC_VDAC_SETTING)); in meson_venci_cvbs_mode_set()
1677 writel_relaxed(VENC_UPSAMPLE_CTRL_INTERLACE_HIGH_LUMA | reg, in meson_venci_cvbs_mode_set()
1684 writel_relaxed(VENC_UPSAMPLE_CTRL_INTERLACE_PB | reg, in meson_venci_cvbs_mode_set()
1691 writel_relaxed(VENC_UPSAMPLE_CTRL_INTERLACE_PR | reg, in meson_venci_cvbs_mode_set()
1695 writel_relaxed(0, priv->io_base + _REG(VENC_VDAC_DACSEL0)); in meson_venci_cvbs_mode_set()
1696 writel_relaxed(0, priv->io_base + _REG(VENC_VDAC_DACSEL1)); in meson_venci_cvbs_mode_set()
1697 writel_relaxed(0, priv->io_base + _REG(VENC_VDAC_DACSEL2)); in meson_venci_cvbs_mode_set()
1698 writel_relaxed(0, priv->io_base + _REG(VENC_VDAC_DACSEL3)); in meson_venci_cvbs_mode_set()
1699 writel_relaxed(0, priv->io_base + _REG(VENC_VDAC_DACSEL4)); in meson_venci_cvbs_mode_set()
1700 writel_relaxed(0, priv->io_base + _REG(VENC_VDAC_DACSEL5)); in meson_venci_cvbs_mode_set()
1706 writel_relaxed(VENC_VDAC_FIFO_EN_ENCI_ENABLE, in meson_venci_cvbs_mode_set()
1710 writel_relaxed(0x11, priv->io_base + _REG(ENCI_DACSEL_0)); in meson_venci_cvbs_mode_set()
1711 writel_relaxed(0x11, priv->io_base + _REG(ENCI_DACSEL_1)); in meson_venci_cvbs_mode_set()
1714 writel_relaxed(ENCI_VIDEO_EN_ENABLE, in meson_venci_cvbs_mode_set()
1718 writel_relaxed(mode->video_saturation, in meson_venci_cvbs_mode_set()
1720 writel_relaxed(mode->video_contrast, in meson_venci_cvbs_mode_set()
1722 writel_relaxed(mode->video_brightness, in meson_venci_cvbs_mode_set()
1724 writel_relaxed(mode->video_hue, in meson_venci_cvbs_mode_set()
1728 writel_relaxed(VENC_VDAC_DAC0_FILT_CTRL0_EN, in meson_venci_cvbs_mode_set()
1730 writel_relaxed(0xfc48, priv->io_base + _REG(VENC_VDAC_DAC0_FILT_CTRL1)); in meson_venci_cvbs_mode_set()
1733 writel_relaxed(0, priv->io_base + _REG(ENCI_MACV_N0)); in meson_venci_cvbs_mode_set()
1736 writel_relaxed(mode->analog_sync_adj, in meson_venci_cvbs_mode_set()
1750 writel_relaxed(VENC_INTCTRL_ENCI_LNRST_INT_EN, in meson_venc_enable_vsync()
1758 writel_relaxed(0, priv->io_base + _REG(VENC_INTCTRL)); in meson_venc_disable_vsync()
1773 writel_relaxed(0xff, priv->io_base + _REG(VENC_VDAC_SETTING)); in meson_venc_init()
1784 writel_relaxed(0, priv->io_base + _REG(ENCI_VIDEO_EN)); in meson_venc_init()
1785 writel_relaxed(0, priv->io_base + _REG(ENCP_VIDEO_EN)); in meson_venc_init()
1786 writel_relaxed(0, priv->io_base + _REG(ENCL_VIDEO_EN)); in meson_venc_init()