Lines Matching refs:dp_regs
19 static void exynos_dp_enable_video_input(struct exynos_dp *dp_regs, in exynos_dp_enable_video_input() argument
24 reg = readl(&dp_regs->video_ctl1); in exynos_dp_enable_video_input()
31 writel(reg, &dp_regs->video_ctl1); in exynos_dp_enable_video_input()
36 void exynos_dp_enable_video_bist(struct exynos_dp *dp_regs, unsigned int enable) in exynos_dp_enable_video_bist() argument
41 reg = readl(&dp_regs->video_ctl4); in exynos_dp_enable_video_bist()
48 writel(reg, &dp_regs->video_ctl4); in exynos_dp_enable_video_bist()
53 void exynos_dp_enable_video_mute(struct exynos_dp *dp_regs, unsigned int enable) in exynos_dp_enable_video_mute() argument
57 reg = readl(&dp_regs->video_ctl1); in exynos_dp_enable_video_mute()
62 writel(reg, &dp_regs->video_ctl1); in exynos_dp_enable_video_mute()
68 static void exynos_dp_init_analog_param(struct exynos_dp *dp_regs) in exynos_dp_init_analog_param() argument
79 writel(reg, &dp_regs->analog_ctl1); in exynos_dp_init_analog_param()
82 writel(reg, &dp_regs->analog_ctl2); in exynos_dp_init_analog_param()
90 writel(reg, &dp_regs->analog_ctl3); in exynos_dp_init_analog_param()
97 writel(reg, &dp_regs->pll_filter_ctl1); in exynos_dp_init_analog_param()
106 writel(reg, &dp_regs->amp_tuning_ctl); in exynos_dp_init_analog_param()
114 writel(reg, &dp_regs->pll_ctl); in exynos_dp_init_analog_param()
117 static void exynos_dp_init_interrupt(struct exynos_dp *dp_regs) in exynos_dp_init_interrupt() argument
127 writel(INT_POL, &dp_regs->int_ctl); in exynos_dp_init_interrupt()
130 writel(0xff, &dp_regs->common_int_sta1); in exynos_dp_init_interrupt()
131 writel(0xff, &dp_regs->common_int_sta2); in exynos_dp_init_interrupt()
132 writel(0xff, &dp_regs->common_int_sta3); in exynos_dp_init_interrupt()
133 writel(0xff, &dp_regs->common_int_sta4); in exynos_dp_init_interrupt()
134 writel(0xff, &dp_regs->int_sta); in exynos_dp_init_interrupt()
137 writel(0x00, &dp_regs->int_sta_mask1); in exynos_dp_init_interrupt()
138 writel(0x00, &dp_regs->int_sta_mask2); in exynos_dp_init_interrupt()
139 writel(0x00, &dp_regs->int_sta_mask3); in exynos_dp_init_interrupt()
140 writel(0x00, &dp_regs->int_sta_mask4); in exynos_dp_init_interrupt()
141 writel(0x00, &dp_regs->int_sta_mask); in exynos_dp_init_interrupt()
144 void exynos_dp_reset(struct exynos_dp *dp_regs) in exynos_dp_reset() argument
149 writel(RESET_DP_TX, &dp_regs->tx_sw_reset); in exynos_dp_reset()
151 exynos_dp_enable_video_input(dp_regs, DP_DISABLE); in exynos_dp_reset()
152 exynos_dp_enable_video_bist(dp_regs, DP_DISABLE); in exynos_dp_reset()
153 exynos_dp_enable_video_mute(dp_regs, DP_DISABLE); in exynos_dp_reset()
160 writel(reg_func_1, &dp_regs->func_en1); in exynos_dp_reset()
161 writel(reg_func_1, &dp_regs->func_en2); in exynos_dp_reset()
165 exynos_dp_init_analog_param(dp_regs); in exynos_dp_reset()
166 exynos_dp_init_interrupt(dp_regs); in exynos_dp_reset()
171 void exynos_dp_enable_sw_func(struct exynos_dp *dp_regs, unsigned int enable) in exynos_dp_enable_sw_func() argument
175 reg = readl(&dp_regs->func_en1); in exynos_dp_enable_sw_func()
181 writel(reg, &dp_regs->func_en1); in exynos_dp_enable_sw_func()
186 unsigned int exynos_dp_set_analog_power_down(struct exynos_dp *dp_regs, in exynos_dp_set_analog_power_down() argument
191 reg = readl(&dp_regs->phy_pd); in exynos_dp_set_analog_power_down()
235 writel(reg, &dp_regs->phy_pd); in exynos_dp_set_analog_power_down()
240 unsigned int exynos_dp_get_pll_lock_status(struct exynos_dp *dp_regs) in exynos_dp_get_pll_lock_status() argument
244 reg = readl(&dp_regs->debug_ctl); in exynos_dp_get_pll_lock_status()
252 static void exynos_dp_set_pll_power(struct exynos_dp *dp_regs, in exynos_dp_set_pll_power() argument
257 reg = readl(&dp_regs->pll_ctl); in exynos_dp_set_pll_power()
263 writel(reg, &dp_regs->pll_ctl); in exynos_dp_set_pll_power()
266 int exynos_dp_init_analog_func(struct exynos_dp *dp_regs) in exynos_dp_init_analog_func() argument
273 exynos_dp_set_analog_power_down(dp_regs, POWER_ALL, DP_DISABLE); in exynos_dp_init_analog_func()
276 writel(reg, &dp_regs->common_int_sta1); in exynos_dp_init_analog_func()
278 reg = readl(&dp_regs->debug_ctl); in exynos_dp_init_analog_func()
280 writel(reg, &dp_regs->debug_ctl); in exynos_dp_init_analog_func()
283 reg = readl(&dp_regs->pll_ctl); in exynos_dp_init_analog_func()
285 writel(reg, &dp_regs->pll_ctl); in exynos_dp_init_analog_func()
290 reg = readl(&dp_regs->pll_ctl); in exynos_dp_init_analog_func()
292 writel(reg, &dp_regs->pll_ctl); in exynos_dp_init_analog_func()
294 exynos_dp_set_pll_power(dp_regs, DP_ENABLE); in exynos_dp_init_analog_func()
296 while (exynos_dp_get_pll_lock_status(dp_regs) == PLL_UNLOCKED) { in exynos_dp_init_analog_func()
309 reg = readl(&dp_regs->func_en2); in exynos_dp_init_analog_func()
312 writel(reg, &dp_regs->func_en2); in exynos_dp_init_analog_func()
317 void exynos_dp_init_hpd(struct exynos_dp *dp_regs) in exynos_dp_init_hpd() argument
323 writel(reg, &dp_regs->common_int_sta4); in exynos_dp_init_hpd()
326 writel(reg, &dp_regs->int_sta); in exynos_dp_init_hpd()
328 reg = readl(&dp_regs->sys_ctl3); in exynos_dp_init_hpd()
330 writel(reg, &dp_regs->sys_ctl3); in exynos_dp_init_hpd()
335 static inline void exynos_dp_reset_aux(struct exynos_dp *dp_regs) in exynos_dp_reset_aux() argument
340 reg = readl(&dp_regs->func_en2); in exynos_dp_reset_aux()
342 writel(reg, &dp_regs->func_en2); in exynos_dp_reset_aux()
347 void exynos_dp_init_aux(struct exynos_dp *dp_regs) in exynos_dp_init_aux() argument
353 writel(reg, &dp_regs->int_sta); in exynos_dp_init_aux()
355 exynos_dp_reset_aux(dp_regs); in exynos_dp_init_aux()
360 writel(reg, &dp_regs->aux_hw_retry_ctl); in exynos_dp_init_aux()
364 writel(reg, &dp_regs->aux_ch_defer_ctl); in exynos_dp_init_aux()
367 reg = readl(&dp_regs->func_en2); in exynos_dp_init_aux()
369 writel(reg, &dp_regs->func_en2); in exynos_dp_init_aux()
374 void exynos_dp_config_interrupt(struct exynos_dp *dp_regs) in exynos_dp_config_interrupt() argument
380 writel(reg, &dp_regs->common_int_mask1); in exynos_dp_config_interrupt()
383 writel(reg, &dp_regs->common_int_mask2); in exynos_dp_config_interrupt()
386 writel(reg, &dp_regs->common_int_mask3); in exynos_dp_config_interrupt()
389 writel(reg, &dp_regs->common_int_mask4); in exynos_dp_config_interrupt()
392 writel(reg, &dp_regs->int_sta_mask); in exynos_dp_config_interrupt()
397 unsigned int exynos_dp_get_plug_in_status(struct exynos_dp *dp_regs) in exynos_dp_get_plug_in_status() argument
401 reg = readl(&dp_regs->sys_ctl3); in exynos_dp_get_plug_in_status()
408 unsigned int exynos_dp_detect_hpd(struct exynos_dp *dp_regs) in exynos_dp_detect_hpd() argument
414 while (exynos_dp_get_plug_in_status(dp_regs) != 0) { in exynos_dp_detect_hpd()
424 unsigned int exynos_dp_start_aux_transaction(struct exynos_dp *dp_regs) in exynos_dp_start_aux_transaction() argument
431 reg = readl(&dp_regs->aux_ch_ctl2); in exynos_dp_start_aux_transaction()
433 writel(reg, &dp_regs->aux_ch_ctl2); in exynos_dp_start_aux_transaction()
437 reg = readl(&dp_regs->int_sta); in exynos_dp_start_aux_transaction()
451 writel(reg, &dp_regs->int_sta); in exynos_dp_start_aux_transaction()
454 reg = readl(&dp_regs->int_sta); in exynos_dp_start_aux_transaction()
457 writel(AUX_ERR, &dp_regs->int_sta); in exynos_dp_start_aux_transaction()
463 reg = readl(&dp_regs->aux_ch_sta); in exynos_dp_start_aux_transaction()
473 unsigned int exynos_dp_write_byte_to_dpcd(struct exynos_dp *dp_regs, in exynos_dp_write_byte_to_dpcd() argument
481 writel(reg, &dp_regs->buffer_data_ctl); in exynos_dp_write_byte_to_dpcd()
485 writel(reg, &dp_regs->aux_addr_7_0); in exynos_dp_write_byte_to_dpcd()
487 writel(reg, &dp_regs->aux_addr_15_8); in exynos_dp_write_byte_to_dpcd()
489 writel(reg, &dp_regs->aux_addr_19_16); in exynos_dp_write_byte_to_dpcd()
493 writel(reg, &dp_regs->buf_data0); in exynos_dp_write_byte_to_dpcd()
501 writel(reg, &dp_regs->aux_ch_ctl1); in exynos_dp_write_byte_to_dpcd()
504 ret = exynos_dp_start_aux_transaction(dp_regs); in exynos_dp_write_byte_to_dpcd()
513 unsigned int exynos_dp_read_byte_from_dpcd(struct exynos_dp *dp_regs, in exynos_dp_read_byte_from_dpcd() argument
522 writel(reg, &dp_regs->buffer_data_ctl); in exynos_dp_read_byte_from_dpcd()
526 writel(reg, &dp_regs->aux_addr_7_0); in exynos_dp_read_byte_from_dpcd()
528 writel(reg, &dp_regs->aux_addr_15_8); in exynos_dp_read_byte_from_dpcd()
530 writel(reg, &dp_regs->aux_addr_19_16); in exynos_dp_read_byte_from_dpcd()
538 writel(reg, &dp_regs->aux_ch_ctl1); in exynos_dp_read_byte_from_dpcd()
541 retval = exynos_dp_start_aux_transaction(dp_regs); in exynos_dp_read_byte_from_dpcd()
546 reg = readl(&dp_regs->buf_data0); in exynos_dp_read_byte_from_dpcd()
552 unsigned int exynos_dp_write_bytes_to_dpcd(struct exynos_dp *dp_regs, in exynos_dp_write_bytes_to_dpcd() argument
566 writel(reg, &dp_regs->buffer_data_ctl); in exynos_dp_write_bytes_to_dpcd()
580 writel(reg, &dp_regs->aux_addr_7_0); in exynos_dp_write_bytes_to_dpcd()
582 writel(reg, &dp_regs->aux_addr_15_8); in exynos_dp_write_bytes_to_dpcd()
584 writel(reg, &dp_regs->aux_addr_19_16); in exynos_dp_write_bytes_to_dpcd()
589 writel(reg, (unsigned int)&dp_regs->buf_data0 + in exynos_dp_write_bytes_to_dpcd()
599 writel(reg, &dp_regs->aux_ch_ctl1); in exynos_dp_write_bytes_to_dpcd()
602 ret = exynos_dp_start_aux_transaction(dp_regs); in exynos_dp_write_bytes_to_dpcd()
618 unsigned int exynos_dp_read_bytes_from_dpcd(struct exynos_dp *dp_regs, in exynos_dp_read_bytes_from_dpcd() argument
632 writel(reg, &dp_regs->buffer_data_ctl); in exynos_dp_read_bytes_from_dpcd()
646 writel(reg, &dp_regs->aux_addr_7_0); in exynos_dp_read_bytes_from_dpcd()
648 writel(reg, &dp_regs->aux_addr_15_8); in exynos_dp_read_bytes_from_dpcd()
650 writel(reg, &dp_regs->aux_addr_19_16); in exynos_dp_read_bytes_from_dpcd()
658 writel(reg, &dp_regs->aux_ch_ctl1); in exynos_dp_read_bytes_from_dpcd()
661 ret = exynos_dp_start_aux_transaction(dp_regs); in exynos_dp_read_bytes_from_dpcd()
674 reg = readl((unsigned int)&dp_regs->buf_data0 + in exynos_dp_read_bytes_from_dpcd()
685 int exynos_dp_select_i2c_device(struct exynos_dp *dp_regs, in exynos_dp_select_i2c_device() argument
693 writel(reg, &dp_regs->aux_addr_7_0); in exynos_dp_select_i2c_device()
694 writel(0x0, &dp_regs->aux_addr_15_8); in exynos_dp_select_i2c_device()
695 writel(0x0, &dp_regs->aux_addr_19_16); in exynos_dp_select_i2c_device()
698 writel(reg_addr, &dp_regs->buf_data0); in exynos_dp_select_i2c_device()
707 writel(reg, &dp_regs->aux_ch_ctl1); in exynos_dp_select_i2c_device()
710 retval = exynos_dp_start_aux_transaction(dp_regs); in exynos_dp_select_i2c_device()
717 int exynos_dp_read_byte_from_i2c(struct exynos_dp *dp_regs, in exynos_dp_read_byte_from_i2c() argument
728 writel(reg, &dp_regs->buffer_data_ctl); in exynos_dp_read_byte_from_i2c()
731 retval = exynos_dp_select_i2c_device(dp_regs, device_addr, in exynos_dp_read_byte_from_i2c()
745 writel(reg, &dp_regs->aux_ch_ctl1); in exynos_dp_read_byte_from_i2c()
748 retval = exynos_dp_start_aux_transaction(dp_regs); in exynos_dp_read_byte_from_i2c()
755 *data = readl(&dp_regs->buf_data0); in exynos_dp_read_byte_from_i2c()
760 int exynos_dp_read_bytes_from_i2c(struct exynos_dp *dp_regs, in exynos_dp_read_bytes_from_i2c() argument
775 writel(reg, &dp_regs->buffer_data_ctl); in exynos_dp_read_bytes_from_i2c()
778 reg = readl(&dp_regs->aux_ch_ctl2); in exynos_dp_read_bytes_from_i2c()
780 writel(reg, &dp_regs->aux_ch_ctl2); in exynos_dp_read_bytes_from_i2c()
788 dp_regs, device_addr, reg_addr + i); in exynos_dp_read_bytes_from_i2c()
801 writel(reg, &dp_regs->aux_ch_ctl1); in exynos_dp_read_bytes_from_i2c()
805 dp_regs); in exynos_dp_read_bytes_from_i2c()
812 reg = readl(&dp_regs->aux_rx_comm); in exynos_dp_read_bytes_from_i2c()
821 reg = readl((unsigned int)&dp_regs->buf_data0 in exynos_dp_read_bytes_from_i2c()
830 void exynos_dp_reset_macro(struct exynos_dp *dp_regs) in exynos_dp_reset_macro() argument
834 reg = readl(&dp_regs->phy_test); in exynos_dp_reset_macro()
836 writel(reg, &dp_regs->phy_test); in exynos_dp_reset_macro()
842 writel(reg, &dp_regs->phy_test); in exynos_dp_reset_macro()
845 void exynos_dp_set_link_bandwidth(struct exynos_dp *dp_regs, in exynos_dp_set_link_bandwidth() argument
854 writel(reg, &dp_regs->link_bw_set); in exynos_dp_set_link_bandwidth()
857 unsigned char exynos_dp_get_link_bandwidth(struct exynos_dp *dp_regs) in exynos_dp_get_link_bandwidth() argument
862 reg = readl(&dp_regs->link_bw_set); in exynos_dp_get_link_bandwidth()
868 void exynos_dp_set_lane_count(struct exynos_dp *dp_regs, unsigned char count) in exynos_dp_set_lane_count() argument
876 writel(reg, &dp_regs->lane_count_set); in exynos_dp_set_lane_count()
879 unsigned int exynos_dp_get_lane_count(struct exynos_dp *dp_regs) in exynos_dp_get_lane_count() argument
881 return readl(&dp_regs->lane_count_set); in exynos_dp_get_lane_count()
884 unsigned char exynos_dp_get_lanex_pre_emphasis(struct exynos_dp *dp_regs, in exynos_dp_get_lanex_pre_emphasis() argument
888 (unsigned int)&dp_regs->ln0_link_training_ctl, in exynos_dp_get_lanex_pre_emphasis()
889 (unsigned int)&dp_regs->ln1_link_training_ctl, in exynos_dp_get_lanex_pre_emphasis()
890 (unsigned int)&dp_regs->ln2_link_training_ctl, in exynos_dp_get_lanex_pre_emphasis()
891 (unsigned int)&dp_regs->ln3_link_training_ctl, in exynos_dp_get_lanex_pre_emphasis()
897 void exynos_dp_set_lanex_pre_emphasis(struct exynos_dp *dp_regs, in exynos_dp_set_lanex_pre_emphasis() argument
902 (unsigned int)&dp_regs->ln0_link_training_ctl, in exynos_dp_set_lanex_pre_emphasis()
903 (unsigned int)&dp_regs->ln1_link_training_ctl, in exynos_dp_set_lanex_pre_emphasis()
904 (unsigned int)&dp_regs->ln2_link_training_ctl, in exynos_dp_set_lanex_pre_emphasis()
905 (unsigned int)&dp_regs->ln3_link_training_ctl, in exynos_dp_set_lanex_pre_emphasis()
911 void exynos_dp_set_lane_pre_emphasis(struct exynos_dp *dp_regs, in exynos_dp_set_lane_pre_emphasis() argument
917 (unsigned int)&dp_regs->ln0_link_training_ctl, in exynos_dp_set_lane_pre_emphasis()
918 (unsigned int)&dp_regs->ln1_link_training_ctl, in exynos_dp_set_lane_pre_emphasis()
919 (unsigned int)&dp_regs->ln2_link_training_ctl, in exynos_dp_set_lane_pre_emphasis()
920 (unsigned int)&dp_regs->ln3_link_training_ctl, in exynos_dp_set_lane_pre_emphasis()
935 void exynos_dp_set_training_pattern(struct exynos_dp *dp_regs, in exynos_dp_set_training_pattern() argument
961 writel(reg, &dp_regs->training_ptn_set); in exynos_dp_set_training_pattern()
964 void exynos_dp_enable_enhanced_mode(struct exynos_dp *dp_regs, in exynos_dp_enable_enhanced_mode() argument
969 reg = readl(&dp_regs->sys_ctl4); in exynos_dp_enable_enhanced_mode()
975 writel(reg, &dp_regs->sys_ctl4); in exynos_dp_enable_enhanced_mode()
978 void exynos_dp_enable_scrambling(struct exynos_dp *dp_regs, unsigned int enable) in exynos_dp_enable_scrambling() argument
982 reg = readl(&dp_regs->training_ptn_set); in exynos_dp_enable_scrambling()
988 writel(reg, &dp_regs->training_ptn_set); in exynos_dp_enable_scrambling()
991 int exynos_dp_init_video(struct exynos_dp *dp_regs) in exynos_dp_init_video() argument
997 writel(reg, &dp_regs->common_int_sta1); in exynos_dp_init_video()
1001 writel(reg, &dp_regs->sys_ctl1); in exynos_dp_init_video()
1006 void exynos_dp_config_video_slave_mode(struct exynos_dp *dp_regs, in exynos_dp_config_video_slave_mode() argument
1012 reg = readl(&dp_regs->func_en1); in exynos_dp_config_video_slave_mode()
1015 writel(reg, &dp_regs->func_en1); in exynos_dp_config_video_slave_mode()
1018 reg = readl(&dp_regs->video_ctl10); in exynos_dp_config_video_slave_mode()
1021 writel(reg, &dp_regs->video_ctl10); in exynos_dp_config_video_slave_mode()
1024 reg = readl(&dp_regs->video_ctl10); in exynos_dp_config_video_slave_mode()
1027 writel(reg, &dp_regs->video_ctl10); in exynos_dp_config_video_slave_mode()
1030 reg = readl(&dp_regs->video_ctl10); in exynos_dp_config_video_slave_mode()
1033 writel(reg, &dp_regs->video_ctl10); in exynos_dp_config_video_slave_mode()
1037 writel(reg, &dp_regs->soc_general_ctl); in exynos_dp_config_video_slave_mode()
1040 void exynos_dp_set_video_color_format(struct exynos_dp *dp_regs, in exynos_dp_set_video_color_format() argument
1049 writel(reg, &dp_regs->video_ctl2); in exynos_dp_set_video_color_format()
1052 reg = readl(&dp_regs->video_ctl3); in exynos_dp_set_video_color_format()
1058 writel(reg, &dp_regs->video_ctl3); in exynos_dp_set_video_color_format()
1061 int exynos_dp_config_video_bist(struct exynos_dp *dp_regs, in exynos_dp_config_video_bist() argument
1071 &dp_regs->total_ln_cfg_l); in exynos_dp_config_video_bist()
1073 &dp_regs->total_ln_cfg_h); in exynos_dp_config_video_bist()
1075 &dp_regs->active_ln_cfg_l); in exynos_dp_config_video_bist()
1077 &dp_regs->active_ln_cfg_h); in exynos_dp_config_video_bist()
1078 writel(priv->disp_info.v_sync_width, &dp_regs->vsw_cfg); in exynos_dp_config_video_bist()
1079 writel(priv->disp_info.v_back_porch, &dp_regs->vbp_cfg); in exynos_dp_config_video_bist()
1080 writel(priv->disp_info.v_front_porch, &dp_regs->vfp_cfg); in exynos_dp_config_video_bist()
1083 &dp_regs->total_pix_cfg_l); in exynos_dp_config_video_bist()
1085 &dp_regs->total_pix_cfg_h); in exynos_dp_config_video_bist()
1087 &dp_regs->active_pix_cfg_l); in exynos_dp_config_video_bist()
1089 &dp_regs->active_pix_cfg_h); in exynos_dp_config_video_bist()
1091 &dp_regs->hfp_cfg_l); in exynos_dp_config_video_bist()
1093 &dp_regs->hfp_cfg_h); in exynos_dp_config_video_bist()
1095 &dp_regs->hsw_cfg_l); in exynos_dp_config_video_bist()
1097 &dp_regs->hsw_cfg_h); in exynos_dp_config_video_bist()
1099 &dp_regs->hbp_cfg_l); in exynos_dp_config_video_bist()
1101 &dp_regs->hbp_cfg_h); in exynos_dp_config_video_bist()
1110 writel(reg, &dp_regs->video_ctl10); in exynos_dp_config_video_bist()
1144 writel(reg, &dp_regs->video_ctl4); in exynos_dp_config_video_bist()
1149 unsigned int exynos_dp_is_slave_video_stream_clock_on(struct exynos_dp *dp_regs) in exynos_dp_is_slave_video_stream_clock_on() argument
1154 reg = readl(&dp_regs->sys_ctl1); in exynos_dp_is_slave_video_stream_clock_on()
1155 writel(reg, &dp_regs->sys_ctl1); in exynos_dp_is_slave_video_stream_clock_on()
1157 reg = readl(&dp_regs->sys_ctl1); in exynos_dp_is_slave_video_stream_clock_on()
1167 void exynos_dp_set_video_cr_mn(struct exynos_dp *dp_regs, unsigned int type, in exynos_dp_set_video_cr_mn() argument
1173 reg = readl(&dp_regs->sys_ctl4); in exynos_dp_set_video_cr_mn()
1175 writel(reg, &dp_regs->sys_ctl4); in exynos_dp_set_video_cr_mn()
1177 writel(reg, &dp_regs->m_vid0); in exynos_dp_set_video_cr_mn()
1179 writel(reg, &dp_regs->m_vid1); in exynos_dp_set_video_cr_mn()
1181 writel(reg, &dp_regs->m_vid2); in exynos_dp_set_video_cr_mn()
1184 writel(reg, &dp_regs->n_vid0); in exynos_dp_set_video_cr_mn()
1186 writel(reg, &dp_regs->n_vid1); in exynos_dp_set_video_cr_mn()
1188 writel(reg, &dp_regs->n_vid2); in exynos_dp_set_video_cr_mn()
1190 reg = readl(&dp_regs->sys_ctl4); in exynos_dp_set_video_cr_mn()
1192 writel(reg, &dp_regs->sys_ctl4); in exynos_dp_set_video_cr_mn()
1196 void exynos_dp_set_video_timing_mode(struct exynos_dp *dp_regs, in exynos_dp_set_video_timing_mode() argument
1201 reg = readl(&dp_regs->video_ctl10); in exynos_dp_set_video_timing_mode()
1207 writel(reg, &dp_regs->video_ctl10); in exynos_dp_set_video_timing_mode()
1210 void exynos_dp_enable_video_master(struct exynos_dp *dp_regs, in exynos_dp_enable_video_master() argument
1215 reg = readl(&dp_regs->soc_general_ctl); in exynos_dp_enable_video_master()
1224 writel(reg, &dp_regs->soc_general_ctl); in exynos_dp_enable_video_master()
1227 void exynos_dp_start_video(struct exynos_dp *dp_regs) in exynos_dp_start_video() argument
1232 reg = readl(&dp_regs->video_ctl1); in exynos_dp_start_video()
1234 writel(reg, &dp_regs->video_ctl1); in exynos_dp_start_video()
1237 unsigned int exynos_dp_is_video_stream_on(struct exynos_dp *dp_regs) in exynos_dp_is_video_stream_on() argument
1242 reg = readl(&dp_regs->sys_ctl3); in exynos_dp_is_video_stream_on()
1243 writel(reg, &dp_regs->sys_ctl3); in exynos_dp_is_video_stream_on()
1245 reg = readl(&dp_regs->sys_ctl3); in exynos_dp_is_video_stream_on()