blob: 06b440dd57d5812c268f05e86cbf74ec821b4148 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Donghwa Leed84f7832012-04-05 19:36:21 +00002/*
3 * Copyright (C) 2012 Samsung Electronics
4 *
5 * Author: InKi Dae <inki.dae@samsung.com>
6 * Author: Donghwa Lee <dh09.lee@samsung.com>
Donghwa Leed84f7832012-04-05 19:36:21 +00007 */
8
9#include <linux/fb.h>
10
11#ifndef _EXYNOS_MIPI_DSI_COMMON_H
12#define _EXYNOS_MIPI_DSI_COMMON_H
13
14int exynos_mipi_dsi_wr_data(struct mipi_dsim_device *dsim, unsigned int data_id,
Donghwa Lee934d9b82013-08-05 13:34:32 +090015 const unsigned char *data0, unsigned int data1);
Donghwa Leed84f7832012-04-05 19:36:21 +000016int exynos_mipi_dsi_pll_on(struct mipi_dsim_device *dsim, unsigned int enable);
17unsigned long exynos_mipi_dsi_change_pll(struct mipi_dsim_device *dsim,
18 unsigned int pre_divider, unsigned int main_divider,
19 unsigned int scaler);
20int exynos_mipi_dsi_set_clock(struct mipi_dsim_device *dsim,
21 unsigned int byte_clk_sel, unsigned int enable);
22int exynos_mipi_dsi_init_dsim(struct mipi_dsim_device *dsim);
23int exynos_mipi_dsi_set_display_mode(struct mipi_dsim_device *dsim,
24 struct mipi_dsim_config *dsim_info);
25int exynos_mipi_dsi_init_link(struct mipi_dsim_device *dsim);
26int exynos_mipi_dsi_set_hs_enable(struct mipi_dsim_device *dsim);
27int exynos_mipi_dsi_set_data_transfer_mode(struct mipi_dsim_device *dsim,
28 unsigned int mode);
29int exynos_mipi_dsi_enable_frame_done_int(struct mipi_dsim_device *dsim,
30 unsigned int enable);
31int exynos_mipi_dsi_get_frame_done_status(struct mipi_dsim_device *dsim);
32int exynos_mipi_dsi_clear_frame_done(struct mipi_dsim_device *dsim);
33
34#endif /* _EXYNOS_MIPI_DSI_COMMON_H */