mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-22 17:33:01 +00:00
e4a9e94cc5
In preparation for device tree, this patch changes how the DSI pins are configured. The current configuration method is only doable with board files and the configuration data is OMAP specific. This patch moves the configuration data to the panel's platform data, and the data can easily be given via DT in the future. The configuration data format is also changed to a generic one which should be suitable for all platforms. The new format is an array of pin numbers, where the array items start from clock + and -, then data1 + and -, and so on. For example: { 0, // pin num for clock lane + 1, // pin num for clock lane - 2, // pin num for data1 lane + 3, // pin num for data1 lane - ... } The pin numbers are translated by the DSI driver and used to configure the hardware appropriately. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Acked-by: Tony Lindgren <tony@atomide.com>
33 lines
763 B
C
33 lines
763 B
C
#ifndef __OMAP_NOKIA_DSI_PANEL_H
|
|
#define __OMAP_NOKIA_DSI_PANEL_H
|
|
|
|
struct omap_dss_device;
|
|
|
|
/**
|
|
* struct nokia_dsi_panel_data - Nokia DSI panel driver configuration
|
|
* @name: panel name
|
|
* @use_ext_te: use external TE
|
|
* @ext_te_gpio: external TE GPIO
|
|
* @esd_interval: interval of ESD checks, 0 = disabled (ms)
|
|
* @ulps_timeout: time to wait before entering ULPS, 0 = disabled (ms)
|
|
* @use_dsi_backlight: true if panel uses DSI command to control backlight
|
|
* @pin_config: DSI pin configuration
|
|
*/
|
|
struct nokia_dsi_panel_data {
|
|
const char *name;
|
|
|
|
int reset_gpio;
|
|
|
|
bool use_ext_te;
|
|
int ext_te_gpio;
|
|
|
|
unsigned esd_interval;
|
|
unsigned ulps_timeout;
|
|
|
|
bool use_dsi_backlight;
|
|
|
|
struct omap_dsi_pin_config pin_config;
|
|
};
|
|
|
|
#endif /* __OMAP_NOKIA_DSI_PANEL_H */
|