From 54c649697b3959d8f74888bd7ec9af0206f7670c Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Tue, 18 May 2010 23:50:00 +0000 Subject: Gigabeat S: Implement LCD contrast, invert and flip modes. Enhance LCD power management. Include init data but it's not needed yet (identical to Gigabeat F). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26154 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/config/gigabeats.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'firmware/export/config') diff --git a/firmware/export/config/gigabeats.h b/firmware/export/config/gigabeats.h index b3e7dc31bd..f096fb07d6 100644 --- a/firmware/export/config/gigabeats.h +++ b/firmware/export/config/gigabeats.h @@ -120,6 +120,21 @@ #ifndef BOOTLOADER +/* define this if you can flip your LCD */ +#define HAVE_LCD_FLIP + +/* define this if you can invert the colours on your LCD */ +#define HAVE_LCD_INVERT + +/* Define this if your LCD can set contrast */ +#define HAVE_LCD_CONTRAST + +/* Main LCD contrast range and defaults */ +#define MIN_CONTRAST_SETTING 0 +#define MAX_CONTRAST_SETTING 63 +#define DEFAULT_CONTRAST_SETTING 47 /* Match boot contrast */ + +/* Define this for LCD backlight brightness available */ #define HAVE_BACKLIGHT_BRIGHTNESS /* Main LCD backlight brightness range and defaults */ @@ -139,7 +154,7 @@ #define CONFIG_I2C I2C_IMX31L /* Define the bitmask of modules used */ -#define SPI_MODULE_MASK (USE_CSPI2_MODULE) +#define SPI_MODULE_MASK (USE_CSPI2_MODULE | USE_CSPI3_MODULE) #define I2C_MODULE_MASK (USE_I2C1_MODULE | USE_I2C2_MODULE) #define GPIO_EVENT_MASK (USE_GPIO1_EVENTS) -- cgit v1.2.3