]>
git.ipfire.org Git - thirdparty/u-boot.git/blob - drivers/video/exynos_mipi_dsi_lowlevel.h
2 * Copyright (C) 2012 Samsung Electronics
4 * Author: InKi Dae <inki.dae@samsung.com>
5 * Author: Donghwa Lee <dh09.lee@samsung.com>
7 * SPDX-License-Identifier: GPL-2.0+
10 #ifndef _EXYNOS_MIPI_DSI_LOWLEVEL_H
11 #define _EXYNOS_MIPI_DSI_LOWLEVEL_H
13 void exynos_mipi_dsi_register(struct mipi_dsim_device
*dsim
);
14 void exynos_mipi_dsi_func_reset(struct mipi_dsim_device
*dsim
);
15 void exynos_mipi_dsi_sw_reset(struct mipi_dsim_device
*dsim
);
16 void exynos_mipi_dsi_sw_release(struct mipi_dsim_device
*dsim
);
17 void exynos_mipi_dsi_set_interrupt_mask(struct mipi_dsim_device
*dsim
,
18 unsigned int mode
, unsigned int mask
);
19 void exynos_mipi_dsi_set_data_lane_number(struct mipi_dsim_device
*dsim
,
21 void exynos_mipi_dsi_init_fifo_pointer(struct mipi_dsim_device
*dsim
,
23 void exynos_mipi_dsi_set_phy_tunning(struct mipi_dsim_device
*dsim
,
25 void exynos_mipi_dsi_set_phy_tunning(struct mipi_dsim_device
*dsim
,
27 void exynos_mipi_dsi_set_main_disp_resol(struct mipi_dsim_device
*dsim
,
28 unsigned int width_resol
, unsigned int height_resol
);
29 void exynos_mipi_dsi_set_main_disp_vporch(struct mipi_dsim_device
*dsim
,
30 unsigned int cmd_allow
, unsigned int vfront
, unsigned int vback
);
31 void exynos_mipi_dsi_set_main_disp_hporch(struct mipi_dsim_device
*dsim
,
32 unsigned int front
, unsigned int back
);
33 void exynos_mipi_dsi_set_main_disp_sync_area(struct mipi_dsim_device
*dsim
,
34 unsigned int vert
, unsigned int hori
);
35 void exynos_mipi_dsi_set_sub_disp_resol(struct mipi_dsim_device
*dsim
,
36 unsigned int vert
, unsigned int hori
);
37 void exynos_mipi_dsi_init_config(struct mipi_dsim_device
*dsim
);
38 void exynos_mipi_dsi_display_config(struct mipi_dsim_device
*dsim
,
39 struct mipi_dsim_config
*dsim_config
);
40 void exynos_mipi_dsi_set_data_lane_number(struct mipi_dsim_device
*dsim
,
42 void exynos_mipi_dsi_enable_lane(struct mipi_dsim_device
*dsim
,
43 unsigned int lane
, unsigned int enable
);
44 void exynos_mipi_dsi_enable_afc(struct mipi_dsim_device
*dsim
,
45 unsigned int enable
, unsigned int afc_code
);
46 void exynos_mipi_dsi_enable_pll_bypass(struct mipi_dsim_device
*dsim
,
48 void exynos_mipi_dsi_pll_freq_band(struct mipi_dsim_device
*dsim
,
49 unsigned int freq_band
);
50 void exynos_mipi_dsi_pll_freq(struct mipi_dsim_device
*dsim
,
51 unsigned int pre_divider
, unsigned int main_divider
,
53 void exynos_mipi_dsi_pll_stable_time(struct mipi_dsim_device
*dsim
,
54 unsigned int lock_time
);
55 void exynos_mipi_dsi_enable_pll(struct mipi_dsim_device
*dsim
,
57 void exynos_mipi_dsi_set_byte_clock_src(struct mipi_dsim_device
*dsim
,
59 void exynos_mipi_dsi_enable_byte_clock(struct mipi_dsim_device
*dsim
,
61 void exynos_mipi_dsi_set_esc_clk_prs(struct mipi_dsim_device
*dsim
,
62 unsigned int enable
, unsigned int prs_val
);
63 void exynos_mipi_dsi_enable_esc_clk_on_lane(struct mipi_dsim_device
*dsim
,
64 unsigned int lane_sel
, unsigned int enable
);
65 void exynos_mipi_dsi_force_dphy_stop_state(struct mipi_dsim_device
*dsim
,
67 unsigned int exynos_mipi_dsi_is_lane_state(struct mipi_dsim_device
*dsim
);
68 void exynos_mipi_dsi_set_stop_state_counter(struct mipi_dsim_device
*dsim
,
69 unsigned int cnt_val
);
70 void exynos_mipi_dsi_set_bta_timeout(struct mipi_dsim_device
*dsim
,
71 unsigned int timeout
);
72 void exynos_mipi_dsi_set_lpdr_timeout(struct mipi_dsim_device
*dsim
,
73 unsigned int timeout
);
74 void exynos_mipi_dsi_set_lcdc_transfer_mode(struct mipi_dsim_device
*dsim
,
76 void exynos_mipi_dsi_set_cpu_transfer_mode(struct mipi_dsim_device
*dsim
,
78 void exynos_mipi_dsi_enable_hs_clock(struct mipi_dsim_device
*dsim
,
80 void exynos_mipi_dsi_dp_dn_swap(struct mipi_dsim_device
*dsim
,
81 unsigned int swap_en
);
82 void exynos_mipi_dsi_hs_zero_ctrl(struct mipi_dsim_device
*dsim
,
83 unsigned int hs_zero
);
84 void exynos_mipi_dsi_prep_ctrl(struct mipi_dsim_device
*dsim
,
86 void exynos_mipi_dsi_clear_interrupt(struct mipi_dsim_device
*dsim
);
87 void exynos_mipi_dsi_clear_all_interrupt(struct mipi_dsim_device
*dsim
);
88 unsigned int exynos_mipi_dsi_is_pll_stable(struct mipi_dsim_device
*dsim
);
89 unsigned int exynos_mipi_dsi_get_fifo_state(struct mipi_dsim_device
*dsim
);
90 unsigned int _exynos_mipi_dsi_get_frame_done_status(struct mipi_dsim_device
92 void _exynos_mipi_dsi_clear_frame_done(struct mipi_dsim_device
*dsim
);
93 void exynos_mipi_dsi_wr_tx_header(struct mipi_dsim_device
*dsim
,
94 unsigned int di
, const unsigned char data0
, const unsigned char data1
);
95 void exynos_mipi_dsi_wr_tx_data(struct mipi_dsim_device
*dsim
,
96 unsigned int tx_data
);
98 #endif /* _EXYNOS_MIPI_DSI_LOWLEVEL_H */