diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2011-11-04 08:04:25 +0000 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2011-11-04 08:04:25 +0000 |
commit | 2181ef3288c4a457fca1622a00636d4d25e8c9a5 (patch) | |
tree | debc0d81fc49ceb02367bb625e3a6873d48a5304 /firmware/target/arm/as3525/sansa-clipzip | |
parent | e71750b7a398197f3884819d0713107b2ce04f08 (diff) | |
download | rockbox-2181ef3288c4a457fca1622a00636d4d25e8c9a5.tar.gz rockbox-2181ef3288c4a457fca1622a00636d4d25e8c9a5.zip |
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/target/arm/as3525/sansa-clipzip')
-rw-r--r-- | firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c | 8 |
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) | |||
108 | } | 108 | } |
109 | 109 | ||
110 | /* Initialises lcd type 0 | 110 | /* Initialises lcd type 0 |
111 | * This appears to be a Visionox M00230 OLED display controlled by a SEPS114A. | 111 | * This appears to be a WiseChip OLED display controlled by a SEPS114A. |
112 | */ | 112 | */ |
113 | static void lcd_init_type0(void) | 113 | static void lcd_init_type0(void) |
114 | { | 114 | { |
@@ -131,7 +131,7 @@ static void lcd_init_type0(void) | |||
131 | lcd_write(0x33, 0x5F); /* DISPLAY_Y2 */ | 131 | lcd_write(0x33, 0x5F); /* DISPLAY_Y2 */ |
132 | lcd_write(0xE0, 0x10); /* RGB_IF */ | 132 | lcd_write(0xE0, 0x10); /* RGB_IF */ |
133 | lcd_write(0xE1, 0x00); /* RGB_POL */ | 133 | lcd_write(0xE1, 0x00); /* RGB_POL */ |
134 | lcd_write(0xE5, 0x00); /* DISPLAY_MODE_CONTROL */ | 134 | lcd_write(0xE5, 0x80); /* DISPLAY_MODE_CONTROL */ |
135 | lcd_write(0x0D, 0x00); /* CPU_IF */ | 135 | lcd_write(0x0D, 0x00); /* CPU_IF */ |
136 | lcd_write(0x1D, 0x01); /* MEMORY_WRITE_READ */ | 136 | lcd_write(0x1D, 0x01); /* MEMORY_WRITE_READ */ |
137 | lcd_write(0x09, 0x00); /* ROW_SCAN_DIRECTION */ | 137 | lcd_write(0x09, 0x00); /* ROW_SCAN_DIRECTION */ |
@@ -155,7 +155,9 @@ static void lcd_write_nibbles(uint8_t val) | |||
155 | lcd_write_dat((val >> 0) & 0x0F); | 155 | lcd_write_dat((val >> 0) & 0x0F); |
156 | } | 156 | } |
157 | 157 | ||
158 | /* initialises lcd type 1 */ | 158 | /* Initialises lcd type 1 |
159 | * This appears to be a Visionox OLED display, with an unknown controller | ||
160 | */ | ||
159 | static void lcd_init_type1(void) | 161 | static void lcd_init_type1(void) |
160 | { | 162 | { |
161 | static const uint8_t curve[128] = { | 163 | static const uint8_t curve[128] = { |