blob: 4d80679a5d795c9b892ec7c4b935edb59409d893 [file] [log] [blame]
Donghwa Leed84f7832012-04-05 19:36:21 +00001/*
2 * Copyright (C) 2012 Samsung Electronics
3 *
4 * Author: InKi Dae <inki.dae@samsung.com>
5 * Author: Donghwa Lee <dh09.lee@samsung.com>
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of
10 * the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
20 * MA 02111-1307 USA
21 */
22
23#include <linux/fb.h>
24
25#ifndef _EXYNOS_MIPI_DSI_COMMON_H
26#define _EXYNOS_MIPI_DSI_COMMON_H
27
28int exynos_mipi_dsi_wr_data(struct mipi_dsim_device *dsim, unsigned int data_id,
29 unsigned int data0, unsigned int data1);
30int exynos_mipi_dsi_pll_on(struct mipi_dsim_device *dsim, unsigned int enable);
31unsigned long exynos_mipi_dsi_change_pll(struct mipi_dsim_device *dsim,
32 unsigned int pre_divider, unsigned int main_divider,
33 unsigned int scaler);
34int exynos_mipi_dsi_set_clock(struct mipi_dsim_device *dsim,
35 unsigned int byte_clk_sel, unsigned int enable);
36int exynos_mipi_dsi_init_dsim(struct mipi_dsim_device *dsim);
37int exynos_mipi_dsi_set_display_mode(struct mipi_dsim_device *dsim,
38 struct mipi_dsim_config *dsim_info);
39int exynos_mipi_dsi_init_link(struct mipi_dsim_device *dsim);
40int exynos_mipi_dsi_set_hs_enable(struct mipi_dsim_device *dsim);
41int exynos_mipi_dsi_set_data_transfer_mode(struct mipi_dsim_device *dsim,
42 unsigned int mode);
43int exynos_mipi_dsi_enable_frame_done_int(struct mipi_dsim_device *dsim,
44 unsigned int enable);
45int exynos_mipi_dsi_get_frame_done_status(struct mipi_dsim_device *dsim);
46int exynos_mipi_dsi_clear_frame_done(struct mipi_dsim_device *dsim);
47
48#endif /* _EXYNOS_MIPI_DSI_COMMON_H */