diff options
Diffstat (limited to 'firmware/target/arm/as3525/clock-target.h')
-rw-r--r-- | firmware/target/arm/as3525/clock-target.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/firmware/target/arm/as3525/clock-target.h b/firmware/target/arm/as3525/clock-target.h index 319b9f57f0..560e067510 100644 --- a/firmware/target/arm/as3525/clock-target.h +++ b/firmware/target/arm/as3525/clock-target.h | |||
@@ -113,15 +113,14 @@ | |||
113 | #define AS3525_DBOP_DIV (CLK_DIV(AS3525_PCLK_FREQ, AS3525_DBOP_FREQ) - 1) /*div=1/(n+1)*/ | 113 | #define AS3525_DBOP_DIV (CLK_DIV(AS3525_PCLK_FREQ, AS3525_DBOP_FREQ) - 1) /*div=1/(n+1)*/ |
114 | #define AS3525_I2C_PRESCALER CLK_DIV(AS3525_PCLK_FREQ, AS3525_I2C_FREQ) | 114 | #define AS3525_I2C_PRESCALER CLK_DIV(AS3525_PCLK_FREQ, AS3525_I2C_FREQ) |
115 | #define AS3525_I2C_FREQ 400000 | 115 | #define AS3525_I2C_FREQ 400000 |
116 | |||
117 | /* For now use same divider for ident frequencies on both internal and uSD cards */ | ||
118 | #define AS3525_SD_IDENT_DIV ((CLK_DIV(AS3525_PCLK_FREQ, AS3525_SD_IDENT_FREQ) / 2) - 1) | 116 | #define AS3525_SD_IDENT_DIV ((CLK_DIV(AS3525_PCLK_FREQ, AS3525_SD_IDENT_FREQ) / 2) - 1) |
119 | #define AS3525_SD_IDENT_FREQ 400000 /* must be between 100 & 400 kHz */ | 117 | #define AS3525_SD_IDENT_FREQ 400000 /* must be between 100 & 400 kHz */ |
120 | 118 | ||
121 | #define AS3525_IDE_SEL AS3525_CLK_PLLA /* Input Source */ | 119 | #define AS3525_IDE_SEL AS3525_CLK_PLLA /* Input Source */ |
122 | #define AS3525_IDE_DIV (CLK_DIV(AS3525_PLLA_FREQ, AS3525_IDE_FREQ) - 1)/*div=1/(n+1)*/ | 120 | #define AS3525_IDE_DIV (CLK_DIV(AS3525_PLLA_FREQ, AS3525_IDE_FREQ) - 1)/*div=1/(n+1)*/ |
123 | /* for now use IDECLK == PCLK for consistency */ | 121 | #define AS3525_IDE_FREQ 90000000 /* The OF uses 66MHz maximal freq |
124 | #define AS3525_IDE_FREQ AS3525_PCLK_FREQ /* The OF uses 66MHz maximal freq */ | 122 | but sd transfers fail on some |
123 | players with this limit */ | ||
125 | 124 | ||
126 | //#define AS3525_USB_SEL AS3525_CLK_PLLA /* Input Source */ | 125 | //#define AS3525_USB_SEL AS3525_CLK_PLLA /* Input Source */ |
127 | //#define AS3525_USB_DIV /* div = 1/(n=0?1:2n)*/ | 126 | //#define AS3525_USB_DIV /* div = 1/(n=0?1:2n)*/ |