1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright (C) 2012 Samsung Electronics
4  *
5  * Author: InKi Dae <inki.dae@samsung.com>
6  * Author: Donghwa Lee <dh09.lee@samsung.com>
7  */
8 
9 #include <linux/fb.h>
10 
11 #ifndef _EXYNOS_MIPI_DSI_COMMON_H
12 #define _EXYNOS_MIPI_DSI_COMMON_H
13 
14 int exynos_mipi_dsi_wr_data(struct mipi_dsim_device *dsim, unsigned int data_id,
15 	const unsigned char *data0, unsigned int data1);
16 int exynos_mipi_dsi_pll_on(struct mipi_dsim_device *dsim, unsigned int enable);
17 unsigned long exynos_mipi_dsi_change_pll(struct mipi_dsim_device *dsim,
18 	unsigned int pre_divider, unsigned int main_divider,
19 	unsigned int scaler);
20 int exynos_mipi_dsi_set_clock(struct mipi_dsim_device *dsim,
21 	unsigned int byte_clk_sel, unsigned int enable);
22 int exynos_mipi_dsi_init_dsim(struct mipi_dsim_device *dsim);
23 int exynos_mipi_dsi_set_display_mode(struct mipi_dsim_device *dsim,
24 			struct mipi_dsim_config *dsim_info);
25 int exynos_mipi_dsi_init_link(struct mipi_dsim_device *dsim);
26 int exynos_mipi_dsi_set_hs_enable(struct mipi_dsim_device *dsim);
27 int exynos_mipi_dsi_set_data_transfer_mode(struct mipi_dsim_device *dsim,
28 		unsigned int mode);
29 int exynos_mipi_dsi_enable_frame_done_int(struct mipi_dsim_device *dsim,
30 	unsigned int enable);
31 int exynos_mipi_dsi_get_frame_done_status(struct mipi_dsim_device *dsim);
32 int exynos_mipi_dsi_clear_frame_done(struct mipi_dsim_device *dsim);
33 
34 #endif /* _EXYNOS_MIPI_DSI_COMMON_H */
35