summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2011-11-04 08:04:25 +0000
committerBertrik Sikken <bertrik@sikken.nl>2011-11-04 08:04:25 +0000
commit2181ef3288c4a457fca1622a00636d4d25e8c9a5 (patch)
treedebc0d81fc49ceb02367bb625e3a6873d48a5304 /firmware
parente71750b7a398197f3884819d0713107b2ce04f08 (diff)
Sansa clip zip: swap RGB<>BGR for WiseChip display
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30898 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c b/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c
index 53d80cbbe7..14f5cc1ce7 100644
--- a/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c
+++ b/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c
@@ -108,7 +108,7 @@ static void lcd_write(uint8_t cmd, uint8_t data)
}
/* Initialises lcd type 0
- * This appears to be a Visionox M00230 OLED display controlled by a SEPS114A.
+ * This appears to be a WiseChip OLED display controlled by a SEPS114A.
*/
static void lcd_init_type0(void)
{
@@ -131,7 +131,7 @@ static void lcd_init_type0(void)
lcd_write(0x33, 0x5F); /* DISPLAY_Y2 */
lcd_write(0xE0, 0x10); /* RGB_IF */
lcd_write(0xE1, 0x00); /* RGB_POL */
- lcd_write(0xE5, 0x00); /* DISPLAY_MODE_CONTROL */
+ lcd_write(0xE5, 0x80); /* DISPLAY_MODE_CONTROL */
lcd_write(0x0D, 0x00); /* CPU_IF */
lcd_write(0x1D, 0x01); /* MEMORY_WRITE_READ */
lcd_write(0x09, 0x00); /* ROW_SCAN_DIRECTION */
@@ -155,7 +155,9 @@ static void lcd_write_nibbles(uint8_t val)
lcd_write_dat((val >> 0) & 0x0F);
}
-/* initialises lcd type 1 */
+/* Initialises lcd type 1
+ * This appears to be a Visionox OLED display, with an unknown controller
+ */
static void lcd_init_type1(void)
{
static const uint8_t curve[128] = {