1 /* linux/arm/arch/mach-exynos/include/mach/mipi_ddi.h
3 * definitions for DDI based MIPI-DSI.
5 * Copyright (c) 2009 Samsung Electronics
6 * InKi Dae <inki.dae@samsung.com>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
16 enum mipi_ddi_interface {
22 MIPI_COMMAND = 0x2000,
25 enum mipi_ddi_panel_select {
34 enum mipi_ddi_parameter {
35 /* DSIM video interface parameter */
36 DSI_VIRTUAL_CH_ID = 0,
38 DSI_VIDEO_MODE_SEL = 2,
41 struct mipi_ddi_spec {
42 unsigned int parameter[3];
45 struct mipi_ddi_platform_data {
46 unsigned int dsim_base;
48 unsigned int resume_complete;
50 int (*lcd_reset) (void);
51 int (*lcd_power_on) (void *pdev, int enable);
52 int (*backlight_on) (int enable);
54 unsigned char (*cmd_write) (unsigned int dsim_base, unsigned int data0,
55 unsigned int data1, unsigned int data2);
56 int (*cmd_read) (unsigned int reg_base, u8 addr, u16 count, u8 *buf);
58 unsigned int reset_delay;
59 unsigned int power_on_delay;
60 unsigned int power_off_delay;
61 #if defined(CONFIG_S5P_DSIM_SWITCHABLE_DUAL_LCD)
62 unsigned int lcd_sel_pin;
63 #endif /* CONFIG_S5P_DSIM_SWITCHABLE_DUAL_LCD */
66 #endif /* _MIPI_DDI_H */