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 | |
| parent | c31fcddd985a9855ece85f4209a4bdae77f3f9c8 (diff) | |
| download | rockbox-1aefd9ea4146ebb7eee606be4efb5cf22654b082.zip rockbox-1aefd9ea4146ebb7eee606be4efb5cf22654b082.tar.gz rockbox-1aefd9ea4146ebb7eee606be4efb5cf22654b082.tar.bz2 rockbox-1aefd9ea4146ebb7eee606be4efb5cf22654b082.tar.xz | |
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')
| -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 3883c8a..aef0e53 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 int i2c_read(int bus, unsigned char slave, int address, int len, unsigned char *data); #ifdef BOOTLOADER +void i2c_preinit(int bus); int i2c_wr(int bus, unsigned char slave, int address, int len, const unsigned char *data); int i2c_rd(int bus, unsigned char slave, int address, int len, unsigned char *data); #endif |