summaryrefslogtreecommitdiff
path: root/firmware/target/arm/s5l8702
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/s5l8702')
-rw-r--r--firmware/target/arm/s5l8702/ipod6g/pmu-target.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/firmware/target/arm/s5l8702/ipod6g/pmu-target.h b/firmware/target/arm/s5l8702/ipod6g/pmu-target.h
index a8c7851d97..94fd17010b 100644
--- a/firmware/target/arm/s5l8702/ipod6g/pmu-target.h
+++ b/firmware/target/arm/s5l8702/ipod6g/pmu-target.h
@@ -25,6 +25,40 @@
25#include <stdbool.h> 25#include <stdbool.h>
26#include "config.h" 26#include "config.h"
27 27
28#include <pcf5063x.h>
29
30/* undocummented PMU registers */
31#define PCF50635_REG_INT6 0x85
32#define PCF50635_REG_INT6M 0x86
33#define PCF50635_REG_GPIOSTAT 0x87 /* bit1: GPIO2 status (TBC) */
34
35/* LDOs */
36#define LDO_UNK1 1 /* TBC: SoC voltage (USB) */
37#define LDO_UNK2 2 /* TBC: SoC voltage (I/O) */
38#define LDO_LCD 3
39#define LDO_CODEC 4
40#define LDO_UNK5 5 /* TBC: nano3g NAND */
41#define LDO_CWHEEL 6
42#define LDO_ACCY 7 /* HCLDO */
43
44/* Other LDOs:
45 * AUTOLDO: Hard Disk
46 * DOWN1: CPU
47 * DOWN2: SDRAM
48 * MEMLDO: SDRAM self-refresh (TBC)
49 *
50 * EXTON inputs:
51 * EXTON1: button/holdswitch related (TBC)
52 * EXTON2: USB Vbus (High when present)
53 * EXTON3: ACCESORY (Low when present)
54 *
55 * GPIO:
56 * GPIO1: input, Mikey (jack remote ctrl) interrupt (TBC)
57 * GPIO2: input, hold switch (TBC)
58 * GPIO3: output, unknown
59 */
60
61
28unsigned char pmu_read(int address); 62unsigned char pmu_read(int address);
29int pmu_write(int address, unsigned char val); 63int pmu_write(int address, unsigned char val);
30int pmu_read_multiple(int address, int count, unsigned char* buffer); 64int pmu_read_multiple(int address, int count, unsigned char* buffer);