forked from len0rd/rockbox
Bugfix Backlight_init should be called after lcd_init
the rest.. Change-Id: I50585ba2191aa8134de3045b1445859b27503a68
This commit is contained in:
parent
f65fb2a64a
commit
47e1f96427
4 changed files with 13 additions and 16 deletions
|
@ -306,12 +306,11 @@ void* main(void)
|
||||||
system_init();
|
system_init();
|
||||||
kernel_init();
|
kernel_init();
|
||||||
|
|
||||||
#ifndef HAVE_BACKLIGHT_INVERSION
|
|
||||||
backlight_init(); /* Turns on the backlight */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
lcd_init();
|
lcd_init();
|
||||||
font_init();
|
font_init();
|
||||||
|
#ifndef HAVE_BACKLIGHT_INVERSION
|
||||||
|
backlight_init(); /* Turns on the backlight BUGFIX backlight_init MUST BE AFTER lcd_init */
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_LCD_COLOR
|
#ifdef HAVE_LCD_COLOR
|
||||||
lcd_set_foreground(LCD_WHITE);
|
lcd_set_foreground(LCD_WHITE);
|
||||||
|
|
|
@ -184,11 +184,11 @@ void main(void)
|
||||||
|
|
||||||
enable_irq();
|
enable_irq();
|
||||||
|
|
||||||
backlight_init(); /* Turns on the backlight */
|
|
||||||
|
|
||||||
lcd_init();
|
lcd_init();
|
||||||
font_init();
|
font_init();
|
||||||
|
|
||||||
|
backlight_init(); /* Turns on backlight -- BUGFIX backlight_init MUST BE AFTER lcd_init */
|
||||||
|
|
||||||
lcd_set_foreground(LCD_WHITE);
|
lcd_set_foreground(LCD_WHITE);
|
||||||
lcd_set_background(LCD_BLACK);
|
lcd_set_background(LCD_BLACK);
|
||||||
lcd_clear_display();
|
lcd_clear_display();
|
||||||
|
|
|
@ -485,14 +485,13 @@ void main(void)
|
||||||
try_flashboot();
|
try_flashboot();
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
backlight_init();
|
|
||||||
|
|
||||||
|
|
||||||
lcd_init();
|
lcd_init();
|
||||||
|
|
||||||
if (!rc_on_button)
|
if (!rc_on_button)
|
||||||
lcd_remote_init();
|
lcd_remote_init();
|
||||||
|
|
||||||
|
backlight_init(); /* BUGFIX backlight_init MUST BE AFTER lcd_init */
|
||||||
|
|
||||||
/* Bootloader uses simplified backlight thread, so we need to enable
|
/* Bootloader uses simplified backlight thread, so we need to enable
|
||||||
remote display here. */
|
remote display here. */
|
||||||
if (remote_detect())
|
if (remote_detect())
|
||||||
|
|
|
@ -280,14 +280,13 @@ int main(void)
|
||||||
/* unmask T0 source in INTC */
|
/* unmask T0 source in INTC */
|
||||||
INTC_MSK |= (1<<10);
|
INTC_MSK |= (1<<10);
|
||||||
|
|
||||||
backlight_init();
|
|
||||||
|
|
||||||
/* copy rb logo image */
|
|
||||||
for (i=0; i<240*74; i++)
|
|
||||||
framebuffer[i] = rockboxlogo[i];
|
|
||||||
|
|
||||||
lcm_init();
|
lcm_init();
|
||||||
lcd_init();
|
lcd_init();
|
||||||
|
backlight_init();
|
||||||
|
|
||||||
|
/* copy rb logo image */
|
||||||
|
for (i=0; i<240*74; i++)
|
||||||
|
framebuffer[i] = rockboxlogo[i];
|
||||||
lcd_update_rect(0,0,240,74);
|
lcd_update_rect(0,0,240,74);
|
||||||
|
|
||||||
/* ADEC_N63.BIN seems to setup P_CLK as 7.5MHz which is timer clk */
|
/* ADEC_N63.BIN seems to setup P_CLK as 7.5MHz which is timer clk */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue