diff --git a/bootloader/ondavx747.c b/bootloader/ondavx747.c index 3767005ebe..0d3e592c6d 100755 --- a/bootloader/ondavx747.c +++ b/bootloader/ondavx747.c @@ -22,7 +22,6 @@ #include "config.h" #include "jz4740.h" #include "backlight.h" -#include "backlight-target.h" #include "font.h" #include "lcd.h" #include "usb.h" @@ -192,7 +191,6 @@ int main(void) { printf("Starting Rockbox..."); adc_close(); /* Disable SADC */ - _backlight_off(); /* Force backlight off to prevent LCD 'flicker' */ disable_interrupt(); kernel_entry = (void*) CONFIG_SDRAM_START; diff --git a/firmware/target/mips/ingenic_jz47xx/onda_vx747/lcd-onda_vx747.c b/firmware/target/mips/ingenic_jz47xx/onda_vx747/lcd-onda_vx747.c index f9ce62f7da..b2ed9bc439 100644 --- a/firmware/target/mips/ingenic_jz47xx/onda_vx747/lcd-onda_vx747.c +++ b/firmware/target/mips/ingenic_jz47xx/onda_vx747/lcd-onda_vx747.c @@ -36,23 +36,24 @@ do { \ REG_GPIO_PXPES(2) = 0x001cffff; \ } while (0) - #define SLEEP(x) { register int __i; for(__i=0; __i 0x1ff ) val = 0x1ff; /* CPM_LPCDR is too large, set it to 0x1ff */ __cpm_set_pixdiv(val); - + __cpm_start_lcd(); } void lcd_init_controller(void) { +#ifdef USB_BOOT _display_pin_init(); +#endif _set_lcd_bus(); _set_lcd_clock(); SLEEP(1000);