summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCástor Muñoz <cmvidal@gmail.com>2016-01-11 18:37:59 +0100
committerCástor Muñoz <cmvidal@gmail.com>2016-01-12 14:24:44 +0100
commit9e24d5df1ac615364605176477202cc8e151b22d (patch)
treeb2116e07d7e4df04c1c5eb92ca4584e4eec7d110
parent166da9add80e30047c99b4cd7f1cfc770f421e09 (diff)
downloadrockbox-9e24d5df1ac615364605176477202cc8e151b22d.tar.gz
rockbox-9e24d5df1ac615364605176477202cc8e151b22d.zip
iPod Classic: update documentation on PMU target
Change-Id: I936889872f83521731e81a972657086a357bb5eb
-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);