diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2009-05-13 08:27:33 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2009-05-13 08:27:33 +0000 |
commit | 8033342d0fe3b977fc7cb1cd77ef408fc69f0878 (patch) | |
tree | cbbd8d9e2836489f2edb63fd85f7851169f60726 /firmware/target/arm/as3525/clock-target.h | |
parent | adb978a44d39598cb26d2fde5cfe74b2a37a3cda (diff) | |
download | rockbox-8033342d0fe3b977fc7cb1cd77ef408fc69f0878.tar.gz rockbox-8033342d0fe3b977fc7cb1cd77ef408fc69f0878.zip |
Sansa AMS : remove mci_set_clock_divider()
Inline the 2 uses, and use a preprocessor sanity check for identification frequency
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20924 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525/clock-target.h')
-rw-r--r-- | firmware/target/arm/as3525/clock-target.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/clock-target.h b/firmware/target/arm/as3525/clock-target.h index 21fd4c65d2..f4b223cdff 100644 --- a/firmware/target/arm/as3525/clock-target.h +++ b/firmware/target/arm/as3525/clock-target.h | |||
@@ -63,5 +63,8 @@ | |||
63 | #endif | 63 | #endif |
64 | 64 | ||
65 | #define AS3525_SD_IDENT_FREQ 400000 /* must be between 100 & 400 kHz */ | 65 | #define AS3525_SD_IDENT_FREQ 400000 /* must be between 100 & 400 kHz */ |
66 | #if ((CLK_DIV(AS3525_PCLK_FREQ, AS3525_SD_IDENT_FREQ) / 2) - 1) >= (1<<8) /* 8 bits */ | ||
67 | #error SD IDENTIFICATION frequency is too low : clock divider will not fit ! | ||
68 | #endif | ||
66 | 69 | ||
67 | #endif /* CLOCK_TARGET_H */ | 70 | #endif /* CLOCK_TARGET_H */ |