summaryrefslogtreecommitdiffstats
path: root/firmware/export/as3514.h
diff options
context:
space:
mode:
authorTobias Diedrich <ranma+coreboot@tdiedrich.de>2010-03-23 05:02:37 +0000
committerTobias Diedrich <ranma+coreboot@tdiedrich.de>2010-03-23 05:02:37 +0000
commit47ab95904efe238568e4cc66f0d3aacd9e7a8c10 (patch)
tree8da94d74b9e0ef3ad01011d706781577eeec0e26 /firmware/export/as3514.h
parent655034983547c0678842e7407cebe0ea12b006cc (diff)
downloadrockbox-47ab95904efe238568e4cc66f0d3aacd9e7a8c10.tar.gz
rockbox-47ab95904efe238568e4cc66f0d3aacd9e7a8c10.zip
Add handler for audio irq.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25299 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/as3514.h')
-rw-r--r--firmware/export/as3514.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/firmware/export/as3514.h b/firmware/export/as3514.h
index a9b12de36e..39a99415b6 100644
--- a/firmware/export/as3514.h
+++ b/firmware/export/as3514.h
@@ -283,6 +283,21 @@ extern void audiohw_set_lineout_vol(int vol_l, int vol_r);
#define RVDD_WASLOW (0x1 << 1)
#define BVDD_ISLOW (0x1 << 0)
+#define IRQ_ENDOFCH (0x1 << 6)
+#define IRQ_CHGSTAT (0x1 << 4)
+#define IRQ_USBSTAT (0x1 << 2)
+
+/* AS3514_IRQ_ENRD2 */
+#define DEBOUNCE_128MS (0x2 << 6)
+#define DEBOUNCE_256MS (0x1 << 6)
+#define DEBOUNCE_512MS (0x0 << 6)
+#define IRQ_HIGHACTIVE (0x1 << 5)
+#define IRQ_PUSHPULL (0x1 << 4)
+#define IRQ_REMDET2 (0x1 << 3)
+#define IRQ_REMDET1 (0x1 << 2)
+#define IRQ_RTC (0x1 << 1)
+#define IRQ_ADC (0x1 << 0)
+
#define AS3514_I2C_ADDR 0x46
#endif /* _AS3514_H */