From cb7e695ef9d0166b77f14d6d260733f0ff888f13 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Thu, 5 Jan 2006 17:02:48 +0000 Subject: iPod: Fix the bootloader so it can load and run the original Apple firmware again. The Rockbox firmware was doing too much to the hardware so we remove most of the initialisation. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8301 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/config-ipodcolor.h | 2 ++ firmware/export/config-ipodnano.h | 2 ++ firmware/export/config-ipodvideo.h | 2 ++ firmware/export/kernel.h | 6 ++++++ 4 files changed, 12 insertions(+) (limited to 'firmware/export') diff --git a/firmware/export/config-ipodcolor.h b/firmware/export/config-ipodcolor.h index 6de461f952..778055f3d7 100644 --- a/firmware/export/config-ipodcolor.h +++ b/firmware/export/config-ipodcolor.h @@ -27,7 +27,9 @@ #define CONFIG_CODEC SWCODEC /* define this if you have a real-time clock */ +#ifndef BOOTLOADER #define CONFIG_RTC RTC_PCF50605 +#endif /* Define this if you have a software controlled poweroff */ #define HAVE_SW_POWEROFF diff --git a/firmware/export/config-ipodnano.h b/firmware/export/config-ipodnano.h index bf7362a168..86cc279bb8 100644 --- a/firmware/export/config-ipodnano.h +++ b/firmware/export/config-ipodnano.h @@ -27,7 +27,9 @@ #define CONFIG_CODEC SWCODEC /* define this if you have a real-time clock */ +#ifndef BOOTLOADER #define CONFIG_RTC RTC_PCF50605 +#endif /* Define this if you have a software controlled poweroff */ #define HAVE_SW_POWEROFF diff --git a/firmware/export/config-ipodvideo.h b/firmware/export/config-ipodvideo.h index 3c3f403983..e06e999e1c 100644 --- a/firmware/export/config-ipodvideo.h +++ b/firmware/export/config-ipodvideo.h @@ -27,7 +27,9 @@ #define CONFIG_CODEC SWCODEC /* define this if you have a real-time clock */ +#ifndef BOOTLOADER #define CONFIG_RTC RTC_PCF50605 +#endif /* Define this if you have a software controlled poweroff */ #define HAVE_SW_POWEROFF diff --git a/firmware/export/kernel.h b/firmware/export/kernel.h index 23c7bc7cb1..42d160bcea 100644 --- a/firmware/export/kernel.h +++ b/firmware/export/kernel.h @@ -66,7 +66,13 @@ struct mutex }; /* global tick variable */ +#if (CONFIG_CPU == PP5020) && defined(BOOTLOADER) +/* We don't enable interrupts in the iPod bootloader, so we need to fake + the current_tick variable */ +#define current_tick ((*((volatile long*)0x60005010))/10000) +#else extern long current_tick; +#endif #ifdef SIMULATOR #define sleep(x) sim_sleep(x) -- cgit v1.2.3