mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-23 21:19:04 -04:00
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>
This commit is contained in:
parent
faa312da9c
commit
b18250a8f6
4 changed files with 565 additions and 0 deletions
16
include/linux/spi/corgi_lcd.h
Normal file
16
include/linux/spi/corgi_lcd.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#ifndef __LINUX_SPI_CORGI_LCD_H
|
||||
#define __LINUX_SPI_CORGI_LCD_H
|
||||
|
||||
#define CORGI_LCD_MODE_QVGA 1
|
||||
#define CORGI_LCD_MODE_VGA 2
|
||||
|
||||
struct corgi_lcd_platform_data {
|
||||
int init_mode;
|
||||
int max_intensity;
|
||||
int default_intensity;
|
||||
|
||||
void (*notify)(int intensity);
|
||||
void (*kick_battery)(void);
|
||||
};
|
||||
|
||||
#endif /* __LINUX_SPI_CORGI_LCD_H */
|
||||
Loading…
Reference in a new issue