diff options
author | codeworkx <codeworkx@cyanogenmod.com> | 2012-09-22 09:48:20 +0200 |
---|---|---|
committer | codeworkx <codeworkx@cyanogenmod.com> | 2012-09-22 14:02:16 +0200 |
commit | 2489007e7d740ccbc3e0a202914e243ad5178787 (patch) | |
tree | b8e6380ea7b1da63474ad68a5dba997e01146043 /drivers/video/samsung_duallcd/dsim2/s5p_mipi_dsi_common.h | |
parent | 5f67568eb31e3a813c7c52461dcf66ade15fc2e7 (diff) | |
download | kernel_samsung_smdk4412-2489007e7d740ccbc3e0a202914e243ad5178787.zip kernel_samsung_smdk4412-2489007e7d740ccbc3e0a202914e243ad5178787.tar.gz kernel_samsung_smdk4412-2489007e7d740ccbc3e0a202914e243ad5178787.tar.bz2 |
merge opensource jb u5
Change-Id: I1aaec157aa196f3448eff8636134fce89a814cf2
Diffstat (limited to 'drivers/video/samsung_duallcd/dsim2/s5p_mipi_dsi_common.h')
-rw-r--r-- | drivers/video/samsung_duallcd/dsim2/s5p_mipi_dsi_common.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/drivers/video/samsung_duallcd/dsim2/s5p_mipi_dsi_common.h b/drivers/video/samsung_duallcd/dsim2/s5p_mipi_dsi_common.h new file mode 100644 index 0000000..4e4883e --- /dev/null +++ b/drivers/video/samsung_duallcd/dsim2/s5p_mipi_dsi_common.h @@ -0,0 +1,45 @@ +/* linux/drivers/video/s5p_mipi_dsi_common.h + * + * Header file for Samsung SoC MIPI-DSI common driver. + * + * Copyright (c) 2011 Samsung Electronics Co., Ltd + * + * InKi Dae <inki.dae@samsung.com> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. +*/ + +#ifndef _S5P_MIPI_DSI_COMMON_H +#define _S5P_MIPI_DSI_COMMON_H + +static DECLARE_COMPLETION(dsim_rd_comp); +static DECLARE_COMPLETION(dsim_wr_comp); + +int s5p_mipi_dsi_wr_data(struct mipi_dsim_device *dsim, unsigned int data_id, + unsigned int data0, unsigned int data1); +int s5p_mipi_dsi_rd_data(struct mipi_dsim_device *dsim, unsigned int data_id, + unsigned int data0, unsigned int req_size, u8 *rx_buf); +irqreturn_t s5p_mipi_dsi_interrupt_handler(int irq, void *dev_id); +void s5p_mipi_dsi_init_interrupt(struct mipi_dsim_device *dsim); +int s5p_mipi_dsi_init_dsim(struct mipi_dsim_device *dsim); +void s5p_mipi_dsi_stand_by(struct mipi_dsim_device *dsim, + unsigned int enable); +int s5p_mipi_dsi_set_display_mode(struct mipi_dsim_device *dsim, + struct mipi_dsim_config *dsim_info); +int s5p_mipi_dsi_init_link(struct mipi_dsim_device *dsim); +int s5p_mipi_dsi_set_hs_enable(struct mipi_dsim_device *dsim); +int s5p_mipi_dsi_set_data_transfer_mode(struct mipi_dsim_device *dsim, + unsigned int mode); +int s5p_mipi_dsi_enable_frame_done_int(struct mipi_dsim_device *dsim, + unsigned int enable); +int s5p_mipi_dsi_get_frame_done_status(struct mipi_dsim_device *dsim); +int s5p_mipi_dsi_clear_frame_done(struct mipi_dsim_device *dsim); + +extern struct fb_info *registered_fb[FB_MAX] __read_mostly; + +int s5p_mipi_dsi_fifo_clear(struct mipi_dsim_device *dsim, + unsigned int val); + +#endif /* _S5P_MIPI_DSI_COMMON_H */ |