summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorMichael Sparmann <theseven@rockbox.org>2011-02-09 21:45:57 +0000
committerMichael Sparmann <theseven@rockbox.org>2011-02-09 21:45:57 +0000
commit44870b7415e8fbe4aa52e55e499a6d774cc721cf (patch)
tree80d1931d8d8cbdeadf07ac17a9817caa05adb5a5 /firmware/export
parentacf54bed55752c1d2af6e9067e84b43d278cf01a (diff)
downloadrockbox-44870b7415e8fbe4aa52e55e499a6d774cc721cf.tar.gz
rockbox-44870b7415e8fbe4aa52e55e499a6d774cc721cf.zip
iPod Classic: Enable boosting by switching the CPU between 1x and 2x AHB clock
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29265 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config/ipod6g.h5
-rw-r--r--firmware/export/s5l8702.h20
2 files changed, 18 insertions, 7 deletions
diff --git a/firmware/export/config/ipod6g.h b/firmware/export/config/ipod6g.h
index 16cf9afcef..6ab89e5869 100644
--- a/firmware/export/config/ipod6g.h
+++ b/firmware/export/config/ipod6g.h
@@ -168,10 +168,9 @@
168#define HAVE_USB_CHARGING_ENABLE 168#define HAVE_USB_CHARGING_ENABLE
169 169
170/* The size of the flash ROM */ 170/* The size of the flash ROM */
171#define FLASH_SIZE 0x400000 171#define FLASH_SIZE 0x1000000
172 172
173/* Define this to the CPU frequency */ 173/* Define this to the CPU frequency */
174//TODO: Figure out exact value
175#define CPU_FREQ 216000000 174#define CPU_FREQ 216000000
176 175
177/* define this if the hardware can be powered off while charging */ 176/* define this if the hardware can be powered off while charging */
@@ -195,7 +194,7 @@
195#define MAX_PHYS_SECTOR_SIZE 4096 194#define MAX_PHYS_SECTOR_SIZE 4096
196 195
197/* Define this if you have adjustable CPU frequency */ 196/* Define this if you have adjustable CPU frequency */
198//TODO: #define HAVE_ADJUSTABLE_CPU_FREQ 197#define HAVE_ADJUSTABLE_CPU_FREQ
199 198
200#define BOOTFILE_EXT "ipod" 199#define BOOTFILE_EXT "ipod"
201#define BOOTFILE "rockbox." BOOTFILE_EXT 200#define BOOTFILE "rockbox." BOOTFILE_EXT
diff --git a/firmware/export/s5l8702.h b/firmware/export/s5l8702.h
index bb3553ed14..076e661fa4 100644
--- a/firmware/export/s5l8702.h
+++ b/firmware/export/s5l8702.h
@@ -28,8 +28,7 @@
28#define REG16_PTR_T volatile uint16_t * 28#define REG16_PTR_T volatile uint16_t *
29#define REG32_PTR_T volatile uint32_t * 29#define REG32_PTR_T volatile uint32_t *
30 30
31//TODO: Figure out exact value 31#define TIMER_FREQ 54000000
32#define TIMER_FREQ 216000000
33 32
34#define CACHEALIGN_BITS (4) /* 2^4 = 16 bytes */ 33#define CACHEALIGN_BITS (4) /* 2^4 = 16 bytes */
35 34
@@ -42,8 +41,21 @@
42#define TTB_SIZE 0x4000 41#define TTB_SIZE 0x4000
43#define TTB_BASE_ADDR (DRAM_ORIG + DRAM_SIZE - TTB_SIZE) 42#define TTB_BASE_ADDR (DRAM_ORIG + DRAM_SIZE - TTB_SIZE)
44 43
45/////SYSCON///// 44/////SYSTEM CONTROLLER/////
46#define CLKCON0C (*((uint32_t volatile*)(0x3C50000C))) 45#define CLKCON0 (*((volatile uint32_t*)(0x3C500000)))
46#define CLKCON1 (*((volatile uint32_t*)(0x3C500004)))
47#define CLKCON2 (*((volatile uint32_t*)(0x3C500008)))
48#define CLKCON3 (*((volatile uint32_t*)(0x3C50000C)))
49#define CLKCON4 (*((volatile uint32_t*)(0x3C500010)))
50#define CLKCON5 (*((volatile uint32_t*)(0x3C500014)))
51#define PLL0PMS (*((volatile uint32_t*)(0x3C500020)))
52#define PLL1PMS (*((volatile uint32_t*)(0x3C500024)))
53#define PLL2PMS (*((volatile uint32_t*)(0x3C500028)))
54#define PLL0LCNT (*((volatile uint32_t*)(0x3C500030)))
55#define PLL1LCNT (*((volatile uint32_t*)(0x3C500034)))
56#define PLL2LCNT (*((volatile uint32_t*)(0x3C500038)))
57#define PLLLOCK (*((volatile uint32_t*)(0x3C500040)))
58#define PLLMODE (*((volatile uint32_t*)(0x3C500044)))
47#define PWRCON(i) (*((uint32_t volatile*)(0x3C500000 \ 59#define PWRCON(i) (*((uint32_t volatile*)(0x3C500000 \
48 + ((i) == 4 ? 0x6C : \ 60 + ((i) == 4 ? 0x6C : \
49 ((i) == 3 ? 0x68 : \ 61 ((i) == 3 ? 0x68 : \