summaryrefslogtreecommitdiff
path: root/firmware/target/arm/s5l8702/ipod6g/pmu-target.h
diff options
context:
space:
mode:
authorCástor Muñoz <cmvidal@gmail.com>2016-05-22 00:43:18 +0200
committerCástor Muñoz <cmvidal@gmail.com>2016-05-25 12:23:47 +0200
commit3f17745930ab0bee11555ab35318121dbec8fab1 (patch)
treef55eca9ef78772842b9f9e9dc448b04d9cefaef5 /firmware/target/arm/s5l8702/ipod6g/pmu-target.h
parente863f9a0ce8d968b085252c3b093b17ca07b65dd (diff)
downloadrockbox-3f17745930ab0bee11555ab35318121dbec8fab1.tar.gz
rockbox-3f17745930ab0bee11555ab35318121dbec8fab1.zip
iPod Classic: HW initialization for RB
Do not rely on a bootloader initializing the HW, RB initializes and configures GPIO, I2C, and PMU at startup. Change-Id: If7f856b1f345f63de584aa4e4fc22d130cd66c80
Diffstat (limited to 'firmware/target/arm/s5l8702/ipod6g/pmu-target.h')
-rw-r--r--firmware/target/arm/s5l8702/ipod6g/pmu-target.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/s5l8702/ipod6g/pmu-target.h b/firmware/target/arm/s5l8702/ipod6g/pmu-target.h
index e4bef6f47c..d090f72a67 100644
--- a/firmware/target/arm/s5l8702/ipod6g/pmu-target.h
+++ b/firmware/target/arm/s5l8702/ipod6g/pmu-target.h
@@ -77,12 +77,12 @@ void pmu_read_rtc(unsigned char* buffer);
77void pmu_write_rtc(unsigned char* buffer); 77void pmu_write_rtc(unsigned char* buffer);
78void pmu_hdd_power(bool on); 78void pmu_hdd_power(bool on);
79 79
80void pmu_preinit(void);
80#ifdef BOOTLOADER 81#ifdef BOOTLOADER
81unsigned char pmu_rd(int address); 82unsigned char pmu_rd(int address);
82int pmu_wr(int address, unsigned char val); 83int pmu_wr(int address, unsigned char val);
83int pmu_rd_multiple(int address, int count, unsigned char* buffer); 84int pmu_rd_multiple(int address, int count, unsigned char* buffer);
84int pmu_wr_multiple(int address, int count, unsigned char* buffer); 85int pmu_wr_multiple(int address, int count, unsigned char* buffer);
85void pmu_preinit(void);
86#endif 86#endif
87 87
88#endif /* __PMU_TARGET_H__ */ 88#endif /* __PMU_TARGET_H__ */