summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/sony-nwz
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-09-26 16:41:57 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-09-26 16:41:57 +0200
commit94f2bc747356217c0f97c61180a15dae5d7ef905 (patch)
tree593d123cb987f6e7f0deca172a5e3a05bde58eb5 /firmware/target/arm/imx233/sony-nwz
parent835d740fca64caa40afb867cef4861ab0f23bee7 (diff)
downloadrockbox-94f2bc747356217c0f97c61180a15dae5d7ef905.tar.gz
rockbox-94f2bc747356217c0f97c61180a15dae5d7ef905.tar.bz2
rockbox-94f2bc747356217c0f97c61180a15dae5d7ef905.zip
sonynwze360: fix color swap
I found the BGR bits in the lcd registers by trival and error. Change-Id: Ib263611e827e8671a0128242b947d76911bd9f47
Diffstat (limited to 'firmware/target/arm/imx233/sony-nwz')
-rw-r--r--firmware/target/arm/imx233/sony-nwz/lcd-nwze360.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/firmware/target/arm/imx233/sony-nwz/lcd-nwze360.c b/firmware/target/arm/imx233/sony-nwz/lcd-nwze360.c
index 2a913103c2..cfcf85bfc0 100644
--- a/firmware/target/arm/imx233/sony-nwz/lcd-nwze360.c
+++ b/firmware/target/arm/imx233/sony-nwz/lcd-nwze360.c
@@ -36,7 +36,6 @@ static bool lcd_on;
static void lcd_write_reg(uint8_t reg, uint8_t data)
{
imx233_lcdif_wait_ready();
- imx233_lcdif_set_data_swizzle(0);
imx233_lcdif_set_word_length(8);
imx233_lcdif_pio_send(false, 1, &reg);
if(reg != 0x22)
@@ -86,13 +85,13 @@ static void lcd_init_seq(void)
lcd_write_reg(0x5c, 0x1a);
lcd_write_reg(0x5d, 0xcc);
lcd_write_reg(0x1b, 0x1b);
- lcd_write_reg(0x1A, 1);
+ lcd_write_reg(0x1a, 1);
lcd_write_reg(0x24, 0x2f); // something special here
lcd_write_reg(0x25, 0x57); // something special here
lcd_write_reg(0x23, 0x8a);
lcd_write_reg(0x2f, 1);
lcd_write_reg(0x60, 0);
- lcd_write_reg(0x16, 8);
+ lcd_write_reg(0x16, 0); // NOTE OF uses 0x8, controls BGR<->RGB
lcd_write_reg(0x18, 0x36); // something special here
lcd_write_reg(0x19, 1);
udelay(5000);