[PATCH] uboot: Fix lcd init
Xiangfu Liu
xiangfu at qi-hardware.com
Fri Oct 30 03:55:26 EDT 2009
Hi Lars
thanks. applied
I also change the REG_06 LCD_CURRENT to 11,
do you think is that OK?
LED_CURRENT(R06h[5:6]): LCD currect adjustable for
DC-DC feedback threshold voltage
0 0.6V (default)
1 0.75V
10 0.45
11 0.3V
+ __spi_write_reg1(0x01, 0x95); \
+ __spi_write_reg1(0x08, 0xc0); \
+ __spi_write_reg1(0x03, 0x40); \
-+ __spi_write_reg1(0x06, 0x15); \
-+ __spi_write_reg1(0x05, 0xd7); \
++ __spi_write_reg1(0x06, 0x75); \
++ __spi_write_reg1(0x13, 0x01); \
++ __spi_write_reg1(0x05, 0x57); \
Lars-Peter Clausen wrote:
> This patch changes the values for lcd register 5 and 6.
> This fixes flicker which could be seen and sets the correct color order so we get
> the right image right from the start.
>
> Signed-of-by: Lars-Peter Clausen <lars at metafoo.de>
> ---
> diff --git a/build_dir/linux-xburst/u-boot-20090707/cpu/mips/jz_lcd.h b/build_dir/linux-xburst/u-boot-20090707/cpu/mips/jz_lcd.h
> index bbc552a..5cc3c29 100644
> --- a/build_dir/linux-xburst/u-boot-20090707/cpu/mips/jz_lcd.h
> +++ b/build_dir/linux-xburst/u-boot-20090707/cpu/mips/jz_lcd.h
> @@ -375,6 +375,7 @@ do { \
> __spi_write_reg1(0x08, 0xc0); \
> __spi_write_reg1(0x03, 0x40); \
> __spi_write_reg1(0x06, 0x15); \
> + __spi_write_reg1(0x13, 0x01); \
> - __spi_write_reg1(0x05, 0xd7); \
> + __spi_write_reg1(0x05, 0x57); \
> } while (0) /* reg 0x0a is control the display direction:DB0->horizontal level DB1->vertical level */
>
More information about the discussion
mailing list