diff options
author | Cástor Muñoz <cmvidal@gmail.com> | 2016-02-04 22:49:01 +0100 |
---|---|---|
committer | Cástor Muñoz <cmvidal@gmail.com> | 2016-05-25 10:59:31 +0200 |
commit | 1aefd9ea4146ebb7eee606be4efb5cf22654b082 (patch) | |
tree | ffbe9f88c2e0624faf93419c5bc9bd63963766ec /firmware/export/i2c-s5l8702.h | |
parent | c31fcddd985a9855ece85f4209a4bdae77f3f9c8 (diff) | |
download | rockbox-1aefd9ea4146ebb7eee606be4efb5cf22654b082.tar.gz rockbox-1aefd9ea4146ebb7eee606be4efb5cf22654b082.zip |
iPod Classic: HW preliminary initialization for bootloader
When the bootloader starts, most of HW never has been initialized.
This patch includes all code needed to perform the preliminary
initialization on SYSCON, GPIO, i2c, and MIU.
The code is based on emCORE and OF reverse engineering, ported to
C for readability.
Change-Id: I9ecf2c3e8b1b636241a211dbba8735137accd05c
Diffstat (limited to 'firmware/export/i2c-s5l8702.h')
-rw-r--r-- | firmware/export/i2c-s5l8702.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/export/i2c-s5l8702.h b/firmware/export/i2c-s5l8702.h index 3883c8abc0..aef0e536bf 100644 --- a/firmware/export/i2c-s5l8702.h +++ b/firmware/export/i2c-s5l8702.h | |||
@@ -29,6 +29,7 @@ int i2c_write(int bus, unsigned char slave, int address, int len, const unsigned | |||
29 | int i2c_read(int bus, unsigned char slave, int address, int len, unsigned char *data); | 29 | int i2c_read(int bus, unsigned char slave, int address, int len, unsigned char *data); |
30 | 30 | ||
31 | #ifdef BOOTLOADER | 31 | #ifdef BOOTLOADER |
32 | void i2c_preinit(int bus); | ||
32 | int i2c_wr(int bus, unsigned char slave, int address, int len, const unsigned char *data); | 33 | int i2c_wr(int bus, unsigned char slave, int address, int len, const unsigned char *data); |
33 | int i2c_rd(int bus, unsigned char slave, int address, int len, unsigned char *data); | 34 | int i2c_rd(int bus, unsigned char slave, int address, int len, unsigned char *data); |
34 | #endif | 35 | #endif |