iPod Classic: introduce PMU interrupts

PMU interrupts are used to detect USB Vbus, wall adaptor, accessories
and holdswitch. A thread is needed to poll the PMU throught I2C, ATM
it does nothing but showing the state of the inputs on the HW debug
menu, funcionallity for each individual input will be added in next
patches.

Change-Id: If93bf2044d1052729237a7fd1431c8493e09f1c7
This commit is contained in:
Cástor Muñoz 2016-05-22 02:33:58 +02:00
parent 88caf222ed
commit 98bd2231ec
6 changed files with 214 additions and 16 deletions

View file

@ -207,7 +207,6 @@ void system_init(void)
#endif
gpio_init();
eint_init();
pmu_init();
dma_init();
#ifdef HAVE_SERIAL
uart_init();