diff options
| author | Eric Miao <eric.miao@marvell.com> | 2008-08-28 16:21:44 -0400 |
|---|---|---|
| committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-09-23 17:04:30 -0400 |
| commit | b18250a8f66050bd2a52287cd543fb93100e8ee0 (patch) | |
| tree | 20e0d142575d3147d2c58542d5bd8ed377e5f3cb /include/linux | |
| parent | faa312da9cd0b044bdc84483162c6ee10b9c83c0 (diff) | |
lcd: add SPI-based LCD and backlight driver for SHARP corgi/spitz
The driver is based on different source files including corgi_ssp.c,
corgi_lcd.c and corgi_bl.c, previously authored by Richard Purdie
and many others.
The LCD and Backlight device actually share the same SPI device, so
they are made into this single driver.
Signed-off-by: Eric Miao <eric.miao@marvell.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/spi/corgi_lcd.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/linux/spi/corgi_lcd.h b/include/linux/spi/corgi_lcd.h new file mode 100644 index 000000000000..3c53ac26c8d1 --- /dev/null +++ b/include/linux/spi/corgi_lcd.h | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | #ifndef __LINUX_SPI_CORGI_LCD_H | ||
| 2 | #define __LINUX_SPI_CORGI_LCD_H | ||
| 3 | |||
| 4 | #define CORGI_LCD_MODE_QVGA 1 | ||
| 5 | #define CORGI_LCD_MODE_VGA 2 | ||
| 6 | |||
| 7 | struct corgi_lcd_platform_data { | ||
| 8 | int init_mode; | ||
| 9 | int max_intensity; | ||
| 10 | int default_intensity; | ||
| 11 | |||
| 12 | void (*notify)(int intensity); | ||
| 13 | void (*kick_battery)(void); | ||
| 14 | }; | ||
| 15 | |||
| 16 | #endif /* __LINUX_SPI_CORGI_LCD_H */ | ||
