mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
iPod Classic: update documentation on PMU target
Change-Id: I936889872f83521731e81a972657086a357bb5eb
This commit is contained in:
parent
166da9add8
commit
9e24d5df1a
1 changed files with 34 additions and 0 deletions
|
|
@ -25,6 +25,40 @@
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
|
#include <pcf5063x.h>
|
||||||
|
|
||||||
|
/* 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);
|
unsigned char pmu_read(int address);
|
||||||
int pmu_write(int address, unsigned char val);
|
int pmu_write(int address, unsigned char val);
|
||||||
int pmu_read_multiple(int address, int count, unsigned char* buffer);
|
int pmu_read_multiple(int address, int count, unsigned char* buffer);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue