diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/config-ipodcolor.h | 2 | ||||
-rw-r--r-- | firmware/export/config-ipodnano.h | 2 | ||||
-rw-r--r-- | firmware/export/config-ipodvideo.h | 2 | ||||
-rw-r--r-- | firmware/export/kernel.h | 6 |
4 files changed, 12 insertions, 0 deletions
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 @@ | |||
27 | #define CONFIG_CODEC SWCODEC | 27 | #define CONFIG_CODEC SWCODEC |
28 | 28 | ||
29 | /* define this if you have a real-time clock */ | 29 | /* define this if you have a real-time clock */ |
30 | #ifndef BOOTLOADER | ||
30 | #define CONFIG_RTC RTC_PCF50605 | 31 | #define CONFIG_RTC RTC_PCF50605 |
32 | #endif | ||
31 | 33 | ||
32 | /* Define this if you have a software controlled poweroff */ | 34 | /* Define this if you have a software controlled poweroff */ |
33 | #define HAVE_SW_POWEROFF | 35 | #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 @@ | |||
27 | #define CONFIG_CODEC SWCODEC | 27 | #define CONFIG_CODEC SWCODEC |
28 | 28 | ||
29 | /* define this if you have a real-time clock */ | 29 | /* define this if you have a real-time clock */ |
30 | #ifndef BOOTLOADER | ||
30 | #define CONFIG_RTC RTC_PCF50605 | 31 | #define CONFIG_RTC RTC_PCF50605 |
32 | #endif | ||
31 | 33 | ||
32 | /* Define this if you have a software controlled poweroff */ | 34 | /* Define this if you have a software controlled poweroff */ |
33 | #define HAVE_SW_POWEROFF | 35 | #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 @@ | |||
27 | #define CONFIG_CODEC SWCODEC | 27 | #define CONFIG_CODEC SWCODEC |
28 | 28 | ||
29 | /* define this if you have a real-time clock */ | 29 | /* define this if you have a real-time clock */ |
30 | #ifndef BOOTLOADER | ||
30 | #define CONFIG_RTC RTC_PCF50605 | 31 | #define CONFIG_RTC RTC_PCF50605 |
32 | #endif | ||
31 | 33 | ||
32 | /* Define this if you have a software controlled poweroff */ | 34 | /* Define this if you have a software controlled poweroff */ |
33 | #define HAVE_SW_POWEROFF | 35 | #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 | |||
66 | }; | 66 | }; |
67 | 67 | ||
68 | /* global tick variable */ | 68 | /* global tick variable */ |
69 | #if (CONFIG_CPU == PP5020) && defined(BOOTLOADER) | ||
70 | /* We don't enable interrupts in the iPod bootloader, so we need to fake | ||
71 | the current_tick variable */ | ||
72 | #define current_tick ((*((volatile long*)0x60005010))/10000) | ||
73 | #else | ||
69 | extern long current_tick; | 74 | extern long current_tick; |
75 | #endif | ||
70 | 76 | ||
71 | #ifdef SIMULATOR | 77 | #ifdef SIMULATOR |
72 | #define sleep(x) sim_sleep(x) | 78 | #define sleep(x) sim_sleep(x) |