summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/sansa-fuze
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2009-05-13 08:27:20 +0000
committerRafaël Carré <rafael.carre@gmail.com>2009-05-13 08:27:20 +0000
commitadb978a44d39598cb26d2fde5cfe74b2a37a3cda (patch)
tree3359698a5a3b7358bb7a35c1e30dff92df23ac38 /firmware/target/arm/as3525/sansa-fuze
parent49ba646d579a89d5ff0e4f3d5eea237eea22aafd (diff)
downloadrockbox-adb978a44d39598cb26d2fde5cfe74b2a37a3cda.tar.gz
rockbox-adb978a44d39598cb26d2fde5cfe74b2a37a3cda.zip
Sansa AMS: Various fixes/enhancements for clock frequencies
Fix CGU_DBOP setting Set PCLK to the exact frequency (62MHz, not the maximal frequency) Use a better comment for CLK_DIV macro Use preprocessor safety checks for clock divider sizes to avoid future mistakes (not for SD_IDENT frequency since that check is handled by mci_set_clock_divider) Use maximal IDE frequency of 66MHz (like OF), not 90MHz like written in AS3525 datasheet. The IDE chip is somehow linked to internal storage, and a too high frequency could affect the storage driver. Use the same DBOP frequency of 32MHz for all models (like OF, verified clip, fuze, e200v2 and m200v4), compromise between performance and battery life could be added in the future for each target Performance increase on Sansa Fuze with DBOP freq. set to 64MHz: +12% fps for lcd_update, +1% fps for yuv Thanks to daytona955 on the forums for his help git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20923 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525/sansa-fuze')
-rw-r--r--firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c b/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c
index 141b890861..f0c85f53b4 100644
--- a/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c
+++ b/firmware/target/arm/as3525/sansa-fuze/lcd-fuze.c
@@ -50,7 +50,7 @@ static bool lcd_busy = false;
50 50
51static void as3525_dbop_init(void) 51static void as3525_dbop_init(void)
52{ 52{
53 CGU_DBOP = (1<<3) | CLK_DIV(AS3525_PCLK_FREQ, AS3525_DBOP_FREQ); 53 CGU_DBOP = (1<<3) | (CLK_DIV(AS3525_PCLK_FREQ, AS3525_DBOP_FREQ) - 1);
54 54
55 DBOP_TIMPOL_01 = 0xe167e167; 55 DBOP_TIMPOL_01 = 0xe167e167;
56 DBOP_TIMPOL_23 = 0xe167006e; 56 DBOP_TIMPOL_23 = 0xe167006e;