From 4093874f80571f32e2aedd2b09b2be9eb5efc47c Mon Sep 17 00:00:00 2001 From: Mark Arigo Date: Wed, 1 Jul 2009 02:18:49 +0000 Subject: Philips SA9200. Add LCD features: enable, sleep, flip, contrast, and invert. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21583 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/config-sa9200.h | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) (limited to 'firmware/export') diff --git a/firmware/export/config-sa9200.h b/firmware/export/config-sa9200.h index 37c0b50035..30aad93898 100755 --- a/firmware/export/config-sa9200.h +++ b/firmware/export/config-sa9200.h @@ -42,18 +42,21 @@ #define LCD_DEPTH 16 /* 65536 colours */ #define LCD_PIXELFORMAT RGB565 /* rgb565 */ +#ifndef BOOTLOADER /* define this if you have LCD enable function */ -/* #define HAVE_LCD_ENABLE */ +#define HAVE_LCD_ENABLE -/* Define this if your LCD can be put to sleep. HAVE_LCD_ENABLE - should be defined as well. */ -/* #define HAVE_LCD_SLEEP */ +/* Define this if your LCD can be put to sleep. + HAVE_LCD_ENABLE should be defined as well. */ +#define HAVE_LCD_SLEEP +#define HAVE_LCD_SLEEP_SETTING +#endif /* define this if you can flip your LCD */ -/* #define HAVE_LCD_FLIP */ +#define HAVE_LCD_FLIP /* define this if you can invert the colours on your LCD */ -/* #define HAVE_LCD_INVERT */ +#define HAVE_LCD_INVERT /* #define IRAM_LCDFRAMEBUFFER IDATA_ATTR *//* put the lcd frame buffer in IRAM */ @@ -150,9 +153,16 @@ /* Define this to the CPU frequency */ #define CPU_FREQ 75000000 -/* Type of LCD TODO: hopefully the same as the x5 but check this*/ +/* Type of LCD */ #define CONFIG_LCD LCD_SA9200 +/* Define this if your LCD can set contrast */ +#define HAVE_LCD_CONTRAST + +#define MIN_CONTRAST_SETTING 0 +#define MAX_CONTRAST_SETTING 31 +#define DEFAULT_CONTRAST_SETTING 22 /* Match boot contrast */ + /* USB On-the-go */ #define CONFIG_USBOTG USBOTG_ARC -- cgit v1.2.3