diff options
author | Cástor Muñoz <cmvidal@gmail.com> | 2016-05-22 02:33:58 +0200 |
---|---|---|
committer | Cástor Muñoz <cmvidal@gmail.com> | 2016-05-25 12:45:34 +0200 |
commit | 98bd2231eca3e6cb015fa58877d648857cb816e6 (patch) | |
tree | e5d5e2bd16eadd658093eb025cf8c5f037fc0ba2 /firmware/export | |
parent | 88caf222ed1da8f88114b4aa3a615e72e3649ca1 (diff) |
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
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/pcf5063x.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/firmware/export/pcf5063x.h b/firmware/export/pcf5063x.h index 164417f483..f5f177ace7 100644 --- a/firmware/export/pcf5063x.h +++ b/firmware/export/pcf5063x.h @@ -159,6 +159,17 @@ enum pcf5063X_reg_oocwake { PCF5063X_OOCWAKE_ADP = 0x80, }; +enum pcf5063X_reg_oocstat { + PCF5063X_OOCSTAT_ONKEY = 0x01, + PCF5063X_OOCSTAT_EXTON1 = 0x02, + PCF5063X_OOCSTAT_EXTON2 = 0x04, + PCF5063X_OOCSTAT_EXTON3 = 0x08, + PCF5063X_OOCSTAT_BUBPRES = 0x10, + PCF5063X_OOCSTAT_SYSOK = 0x20, + PCF5063X_OOCSTAT_BATOK = 0x40, + PCF5063X_OOCSTAT_TMPOK = 0x80, +}; + enum pcf5063X_reg_mbcc1 { PCF5063X_MBCC1_CHGENA = 0x01, /* Charger enable */ PCF5063X_MBCC1_AUTOSTOP = 0x02, |