summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/clock-target.h
diff options
context:
space:
mode:
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 */