From 1aefd9ea4146ebb7eee606be4efb5cf22654b082 Mon Sep 17 00:00:00 2001 From: Cástor Muñoz Date: Thu, 4 Feb 2016 22:49:01 +0100 Subject: 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 --- firmware/export/i2c-s5l8702.h | 1 + 1 file changed, 1 insertion(+) (limited to 'firmware/export/i2c-s5l8702.h') 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 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 -- cgit v1.2.3