From 9e24d5df1ac615364605176477202cc8e151b22d Mon Sep 17 00:00:00 2001 From: Cástor Muñoz Date: Mon, 11 Jan 2016 18:37:59 +0100 Subject: iPod Classic: update documentation on PMU target Change-Id: I936889872f83521731e81a972657086a357bb5eb --- firmware/target/arm/s5l8702/ipod6g/pmu-target.h | 34 +++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'firmware/target') 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 @@ #include #include "config.h" +#include + +/* undocummented PMU registers */ +#define PCF50635_REG_INT6 0x85 +#define PCF50635_REG_INT6M 0x86 +#define PCF50635_REG_GPIOSTAT 0x87 /* bit1: GPIO2 status (TBC) */ + +/* LDOs */ +#define LDO_UNK1 1 /* TBC: SoC voltage (USB) */ +#define LDO_UNK2 2 /* TBC: SoC voltage (I/O) */ +#define LDO_LCD 3 +#define LDO_CODEC 4 +#define LDO_UNK5 5 /* TBC: nano3g NAND */ +#define LDO_CWHEEL 6 +#define LDO_ACCY 7 /* HCLDO */ + +/* Other LDOs: + * AUTOLDO: Hard Disk + * DOWN1: CPU + * DOWN2: SDRAM + * MEMLDO: SDRAM self-refresh (TBC) + * + * EXTON inputs: + * EXTON1: button/holdswitch related (TBC) + * EXTON2: USB Vbus (High when present) + * EXTON3: ACCESORY (Low when present) + * + * GPIO: + * GPIO1: input, Mikey (jack remote ctrl) interrupt (TBC) + * GPIO2: input, hold switch (TBC) + * GPIO3: output, unknown + */ + + unsigned char pmu_read(int address); int pmu_write(int address, unsigned char val); int pmu_read_multiple(int address, int count, unsigned char* buffer); -- cgit v1.2.3