summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/clock-target.h
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-02-05 12:40:25 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-02-05 12:40:25 +0000
commit12af2926e50450fe8a5aacbc1d4477b68fdd3e63 (patch)
treee761118345fc8640ba181999e8575964f3975587 /firmware/target/arm/as3525/clock-target.h
parenta9ab407f8460017d3c7189f0cbf4bd464e7a90ce (diff)
downloadrockbox-12af2926e50450fe8a5aacbc1d4477b68fdd3e63.tar.gz
rockbox-12af2926e50450fe8a5aacbc1d4477b68fdd3e63.zip
Make Clip+ bootloader build
Now making the Fuzev2 bootloader build should be pretty easy TODO: - write button driver (FlynDice found all buttons already) - find button light - decide if lcd-ssd1303.c must be modified for Clip+ using SSP or forked - check if backlight code works (I copied Clipv2 code) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24520 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525/clock-target.h')
-rw-r--r--firmware/target/arm/as3525/clock-target.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/arm/as3525/clock-target.h b/firmware/target/arm/as3525/clock-target.h
index fd3a1c7bf4..16f28429b8 100644
--- a/firmware/target/arm/as3525/clock-target.h
+++ b/firmware/target/arm/as3525/clock-target.h
@@ -56,7 +56,7 @@
56#define AS3525_CLK_FCLK 3 /* Available as PCLK input only */ 56#define AS3525_CLK_FCLK 3 /* Available as PCLK input only */
57 57
58/** ************ Change these to reconfigure clocking scheme *******************/ 58/** ************ Change these to reconfigure clocking scheme *******************/
59#ifdef SANSA_CLIPV2 59#if CONFIG_CPU == AS3525v2
60 60
61/* PLL* registers differ from AS3525 */ 61/* PLL* registers differ from AS3525 */
62#define AS3525_PLLA_FREQ 240000000 62#define AS3525_PLLA_FREQ 240000000
@@ -74,7 +74,7 @@
74#define AS3525_PLLB_FREQ 384000000 /* allows 44.1kHz with 0.04% error*/ 74#define AS3525_PLLB_FREQ 384000000 /* allows 44.1kHz with 0.04% error*/
75#define AS3525_PLLB_SETTING 0x2630 75#define AS3525_PLLB_SETTING 0x2630
76 76
77#endif /* SANSA_CLIPV2 */ 77#endif /* CONFIG_CPU == AS3525v2 */
78 78
79//#define AS3525_PLLA_FREQ 384000000 /*192,128,96,76.8,64,54.9,48,42.7,38.4*/ 79//#define AS3525_PLLA_FREQ 384000000 /*192,128,96,76.8,64,54.9,48,42.7,38.4*/
80 /* FCLK_PREDIV-> *7/8 = 336MHz 168, 112, 84, 67.2, 56, 48, 42, 37.3*/ 80 /* FCLK_PREDIV-> *7/8 = 336MHz 168, 112, 84, 67.2, 56, 48, 42, 37.3*/
@@ -142,12 +142,12 @@
142#define AS3525_IDE_SEL AS3525_CLK_PLLA /* Input Source */ 142#define AS3525_IDE_SEL AS3525_CLK_PLLA /* Input Source */
143#define AS3525_IDE_DIV (CLK_DIV(AS3525_PLLA_FREQ, AS3525_IDE_FREQ) - 1)/*div=1/(n+1)*/ 143#define AS3525_IDE_DIV (CLK_DIV(AS3525_PLLA_FREQ, AS3525_IDE_FREQ) - 1)/*div=1/(n+1)*/
144 144
145#ifdef SANSA_CLIPV2 145#if CONFIG_CPU == AS3525v2
146#define AS3525_MS_FREQ 120000000 146#define AS3525_MS_FREQ 120000000
147#define AS3525_IDE_FREQ 80000000 147#define AS3525_IDE_FREQ 80000000
148#else 148#else
149#define AS3525_IDE_FREQ 50000000 /* The OF uses 66MHz maximal freq */ 149#define AS3525_IDE_FREQ 50000000 /* The OF uses 66MHz maximal freq */
150#endif /* SANSA_CLIPV2 */ 150#endif /* CONFIG_CPU == AS3525v2 */
151 151
152 152
153//#define AS3525_USB_SEL AS3525_CLK_PLLA /* Input Source */ 153//#define AS3525_USB_SEL AS3525_CLK_PLLA /* Input Source */