diff options
author | Steve Markgraf <steve@steve-m.de> | 2012-01-30 08:18:26 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2012-02-03 23:59:35 +0100 |
commit | 4a5e3404f9e5ad9da7e12ef509e823b0953e143a (patch) | |
tree | 7f5a2229d0eb98a0e875a18e0050e173ce1daa68 /src | |
parent | 593d905f0fa70631a1329aa1c1191a888ca0c99f (diff) |
[PATCH] fw/fb/ssd1783: fix the RGB332 color palette
We revert the initialization of the palette to the behaviour of the
old non-fb driver.
Signed-off-by: Steve Markgraf <steve@steve-m.de>
Signed-off-by: Andreas Eversberg <jolly@eversberg.eu>
Diffstat (limited to 'src')
-rw-r--r-- | src/target/firmware/fb/fb_ssd1783.c | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/src/target/firmware/fb/fb_ssd1783.c b/src/target/firmware/fb/fb_ssd1783.c index 19aa86db..cacdce03 100644 --- a/src/target/firmware/fb/fb_ssd1783.c +++ b/src/target/firmware/fb/fb_ssd1783.c @@ -64,16 +64,26 @@ ssd1783_initdata[] = { /*-->*/ { DATA, 0x01 }, /* DATA: 8 bit per pixel mode MSB <RRRGGGBB> LSB */ /* --------- /DIFFERENT ---------- */ { CMD, 0xce }, /* CMD Set 256 Color Look Up Table LUT */ - { DATA, 0x00 }, /* DATA: R[000], G[000], B[00] 3-bit R and G have */ - { DATA, 0x09 }, /* DATA: R[001], G[001] eight levels defined */ - { DATA, 0x12 }, /* DATA: R[010], G[010] of which the first and */ - { DATA, 0x1b }, /* DATA: R[011], G[011] the last are shared */ - { DATA, 0x24 }, /* DATA: R[100], G[100] by 2-bit blue */ - { DATA, 0x2d }, /* DATA: R[101], G[101] The intermediate two */ - { DATA, 0x36 }, /* DATA: R[110], G[110] steps are defined */ - { DATA, 0x3f }, /* DATA: R[111], G[111], B[11] separately */ - { DATA, 0x12 }, /* DATA: B[01] */ - { DATA, 0x24 }, /* DATA: B[10] */ + { DATA, 0x00 }, /* DATA red 000 */ + { DATA, 0x03 }, /* DATA red 001 */ + { DATA, 0x05 }, /* DATA red 010 */ + { DATA, 0x07 }, /* DATA red 011 */ + { DATA, 0x09 }, /* DATA red 100 */ + { DATA, 0x0b }, /* DATA red 101 */ + { DATA, 0x0d }, /* DATA red 110 */ + { DATA, 0x0f }, /* DATA red 111 */ + { DATA, 0x00 }, /* DATA green 000 */ + { DATA, 0x03 }, /* DATA green 001 */ + { DATA, 0x05 }, /* DATA green 010 */ + { DATA, 0x07 }, /* DATA green 011 */ + { DATA, 0x09 }, /* DATA green 100 */ + { DATA, 0x0b }, /* DATA green 101 */ + { DATA, 0x0d }, /* DATA green 110 */ + { DATA, 0x0f }, /* DATA green 111 */ + { DATA, 0x00 }, /* DATA blue 00 */ + { DATA, 0x05 }, /* DATA blue 01 */ + { DATA, 0x0a }, /* DATA blue 10 */ + { DATA, 0x0f }, /* DATA blue 11 */ { CMD, 0xca }, /* CMD Set Display Control - Driver Duty Selection */ { DATA, 0xff }, // can't find description of the values in the original { DATA, 0x10 }, // display/ssd1783.c in my datasheet :-( |