Index: apps/debug_menu.c =================================================================== --- apps/debug_menu.c (revision 15879) +++ apps/debug_menu.c (working copy) @@ -92,6 +92,9 @@ #include "debug-target.h" #endif +#include "i2c-pp.h" +#include "as3514.h" + /*---------------------------------------------------*/ /* SPECIAL DEBUG STUFF */ /*---------------------------------------------------*/ @@ -1211,6 +1214,9 @@ lcd_puts(0, line++, buf); snprintf(buf, sizeof(buf), "ADC_VBAT: %4d", adc_read(ADC_VBAT)); lcd_puts(0, line++, buf); + + snprintf(buf, sizeof(buf), "CHARGER: %02X/%02X", i2c_readbyte(AS3514_I2C_ADDR, 0x22), i2c_readbyte(AS3514_I2C_ADDR, 0x25)); + lcd_puts(0, line++, buf); #endif lcd_update(); if (button_get_w_tmo(HZ/10) == (DEBUG_CANCEL|BUTTON_REL)) Index: firmware/target/arm/system-pp502x.c =================================================================== --- firmware/target/arm/system-pp502x.c (revision 15879) +++ firmware/target/arm/system-pp502x.c (working copy) @@ -335,8 +335,6 @@ #if defined(SANSA_E200) || defined(SANSA_C200) CACHE_CTL &= ~CACHE_CTL_VECT_REMAP; - pp_i2c_send(AS3514_I2C_ADDR, DCDC15, 0x0); /* backlight off */ - /* Magic used by the c200 OF: 0x23066000 Magic used by the c200 BL: 0x23066b7b In both cases, the OF executes these 2 commands from iram. */ @@ -345,6 +343,8 @@ #else DEV_RS |= DEV_SYSTEM; #endif + /* wait until reboot kicks in */ + while (1); } int system_memory_guard(int newmode)