iPod Classic: use PMU interrupts to detect USB and FW

Change-Id: I9be733e1a943ddeb99335d362f81f74879eeb94b
This commit is contained in:
Cástor Muñoz 2016-05-25 23:43:26 +02:00
parent f6ed4f8306
commit daee722455
6 changed files with 44 additions and 22 deletions

View file

@ -122,7 +122,7 @@ bool dbg_hw_info(void)
_DEBUG_PRINTF("brightness value: %d", pmu_read(0x28));
line++;
_DEBUG_PRINTF("USB present: %s",
pmu_usb_present() ? "true" : "false");
(power_input_status() & POWER_INPUT_USB) ? "true" : "false");
#if CONFIG_CHARGING
_DEBUG_PRINTF("FW present: %s",
pmu_firewire_present() ? "true" : "false");