]> git.ipfire.org Git - thirdparty/u-boot.git/blame - drivers/video/exynos/exynos_dp_lowlevel.h
SPDX: Convert all of our single license tags to Linux Kernel style
[thirdparty/u-boot.git] / drivers / video / exynos / exynos_dp_lowlevel.h
CommitLineData
83d290c5 1/* SPDX-License-Identifier: GPL-2.0+ */
d2a6982f
DL
2/*
3 * Copyright (C) 2012 Samsung Electronics
4 *
5 * Author: Donghwa Lee <dh09.lee@samsung.com>
d2a6982f
DL
6 */
7
8#ifndef _EXYNOS_EDP_LOWLEVEL_H
9#define _EXYNOS_EDP_LOWLEVEL_H
10
8c9b8dc0
SG
11void exynos_dp_enable_video_bist(struct exynos_dp *dp_regs,
12 unsigned int enable);
13void exynos_dp_enable_video_mute(struct exynos_dp *dp_regs,
14 unsigned int enable);
15void exynos_dp_reset(struct exynos_dp *dp_regs);
16void exynos_dp_enable_sw_func(struct exynos_dp *dp_regs, unsigned int enable);
17unsigned int exynos_dp_set_analog_power_down(struct exynos_dp *dp_regs,
18 unsigned int block, u32 enable);
19unsigned int exynos_dp_get_pll_lock_status(struct exynos_dp *dp_regs);
20int exynos_dp_init_analog_func(struct exynos_dp *dp_regs);
21void exynos_dp_init_hpd(struct exynos_dp *dp_regs);
22void exynos_dp_init_aux(struct exynos_dp *dp_regs);
23void exynos_dp_config_interrupt(struct exynos_dp *dp_regs);
24unsigned int exynos_dp_get_plug_in_status(struct exynos_dp *dp_regs);
25unsigned int exynos_dp_detect_hpd(struct exynos_dp *dp_regs);
26unsigned int exynos_dp_start_aux_transaction(struct exynos_dp *dp_regs);
27unsigned int exynos_dp_write_byte_to_dpcd(struct exynos_dp *dp_regs,
28 unsigned int reg_addr,
29 unsigned char data);
30unsigned int exynos_dp_read_byte_from_dpcd(struct exynos_dp *dp_regs,
31 unsigned int reg_addr,
32 unsigned char *data);
33unsigned int exynos_dp_write_bytes_to_dpcd(struct exynos_dp *dp_regs,
34 unsigned int reg_addr,
35 unsigned int count,
36 unsigned char data[]);
37unsigned int exynos_dp_read_bytes_from_dpcd(struct exynos_dp *dp_regs,
38 unsigned int reg_addr,
39 unsigned int count,
40 unsigned char data[]);
41int exynos_dp_select_i2c_device(struct exynos_dp *dp_regs,
42 unsigned int device_addr,
43 unsigned int reg_addr);
44int exynos_dp_read_byte_from_i2c(struct exynos_dp *dp_regs,
45 unsigned int device_addr,
46 unsigned int reg_addr, unsigned int *data);
47int exynos_dp_read_bytes_from_i2c(struct exynos_dp *dp_regs,
48 unsigned int device_addr,
49 unsigned int reg_addr, unsigned int count,
50 unsigned char edid[]);
51void exynos_dp_reset_macro(struct exynos_dp *dp_regs);
52void exynos_dp_set_link_bandwidth(struct exynos_dp *dp_regs,
53 unsigned char bwtype);
54unsigned char exynos_dp_get_link_bandwidth(struct exynos_dp *dp_regs);
55void exynos_dp_set_lane_count(struct exynos_dp *dp_regs, unsigned char count);
56unsigned int exynos_dp_get_lane_count(struct exynos_dp *dp_regs);
57unsigned char exynos_dp_get_lanex_pre_emphasis(struct exynos_dp *dp_regs,
58 unsigned char lanecnt);
59void exynos_dp_set_lane_pre_emphasis(struct exynos_dp *dp_regs,
60 unsigned int level, unsigned char lanecnt);
61void exynos_dp_set_lanex_pre_emphasis(struct exynos_dp *dp_regs,
62 unsigned char request_val,
63 unsigned char lanecnt);
64void exynos_dp_set_training_pattern(struct exynos_dp *dp_regs,
65 unsigned int pattern);
66void exynos_dp_enable_enhanced_mode(struct exynos_dp *dp_regs,
67 unsigned char enable);
68void exynos_dp_enable_scrambling(struct exynos_dp *dp_regs,
69 unsigned int enable);
70int exynos_dp_init_video(struct exynos_dp *dp_regs);
71void exynos_dp_config_video_slave_mode(struct exynos_dp *dp_regs,
72 struct edp_video_info *video_info);
73void exynos_dp_set_video_color_format(struct exynos_dp *dp_regs,
74 struct edp_video_info *video_info);
75int exynos_dp_config_video_bist(struct exynos_dp *dp_regs,
8b449a66 76 struct exynos_dp_priv *priv);
8c9b8dc0
SG
77unsigned int exynos_dp_is_slave_video_stream_clock_on(
78 struct exynos_dp *dp_regs);
79void exynos_dp_set_video_cr_mn(struct exynos_dp *dp_regs, unsigned int type,
80 unsigned int m_value, unsigned int n_value);
81void exynos_dp_set_video_timing_mode(struct exynos_dp *dp_regs,
82 unsigned int type);
83void exynos_dp_enable_video_master(struct exynos_dp *dp_regs,
84 unsigned int enable);
85void exynos_dp_start_video(struct exynos_dp *dp_regs);
86unsigned int exynos_dp_is_video_stream_on(struct exynos_dp *dp_regs);
d2a6982f
DL
87
88#endif /* _EXYNOS_DP_LOWLEVEL_H */