upload tizen1.0 source
[kernel/linux-2.6.36.git] / drivers / video / s5p_mipi_dsi_common.h
1 /* linux/drivers/video/s5p_mipi_dsi_common.h
2  *
3  * Header file for Samsung SoC MIPI-DSI common driver.
4  *
5  * Copyright (c) 2011 Samsung Electronics Co., Ltd
6  *
7  * InKi Dae <inki.dae@samsung.com>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License version 2 as
11  * published by the Free Software Foundation.
12 */
13
14 #ifndef _S5P_MIPI_DSI_COMMON_H
15 #define _S5P_MIPI_DSI_COMMON_H
16
17 static DECLARE_COMPLETION(dsim_rd_comp);
18
19 int s5p_mipi_dsi_wr_data(struct mipi_dsim_device *dsim, unsigned int data_id,
20         unsigned int data0, unsigned int data1);
21 int s5p_mipi_dsi_rd_data(struct mipi_dsim_device *dsim, unsigned int data_id,
22         unsigned int data0, unsigned int req_size, u8 *rx_buf);
23 int s5p_mipi_dsi_pll_on(struct mipi_dsim_device *dsim, unsigned int enable);
24 unsigned long s5p_mipi_dsi_change_pll(struct mipi_dsim_device *dsim,
25         unsigned int pre_divider, unsigned int main_divider,
26         unsigned int scaler);
27 irqreturn_t s5p_mipi_dsi_interrupt_handler(int irq, void *dev_id);
28 void s5p_mipi_dsi_init_interrupt(struct mipi_dsim_device *dsim);
29 int s5p_mipi_dsi_set_clock(struct mipi_dsim_device *dsim,
30         unsigned int byte_clk_sel, unsigned int enable);
31 int s5p_mipi_dsi_init_dsim(struct mipi_dsim_device *dsim);
32 void s5p_mipi_dsi_stand_by(struct mipi_dsim_device *dsim,
33                 unsigned int enable);
34 int s5p_mipi_dsi_set_display_mode(struct mipi_dsim_device *dsim,
35                         struct mipi_dsim_config *dsim_info);
36 int s5p_mipi_dsi_init_link(struct mipi_dsim_device *dsim);
37 int s5p_mipi_dsi_set_hs_enable(struct mipi_dsim_device *dsim);
38 int s5p_mipi_dsi_set_data_transfer_mode(struct mipi_dsim_device *dsim,
39                 unsigned int mode);
40 int s5p_mipi_dsi_enable_frame_done_int(struct mipi_dsim_device *dsim,
41         unsigned int enable);
42 int s5p_mipi_dsi_get_frame_done_status(struct mipi_dsim_device *dsim);
43 int s5p_mipi_dsi_clear_frame_done(struct mipi_dsim_device *dsim);
44
45 extern struct fb_info *registered_fb[FB_MAX] __read_mostly;
46
47 #endif /* _S5P_MIPI_DSI_COMMON_H */