From c30f2f6ae478b2ec1d18cf3a3f715dcd587efddf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Wed, 2 Jun 2010 18:30:39 +0000 Subject: [PATCH] as3525v1: do not disable clocks in sd_enable() This can lead to freeze in various situations: - when recording PCM especially at high samplerate - when closing big files (like the 300MB one of test_disk write & verify) - when doing updating database during playback It's not clear yet what effect (if any) this has on battery life ref: fs#11267 git-svn-id: svn://svn.rockbox.org/rockbox/branches/v3_6@26481 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/arm/as3525/sd-as3525.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/firmware/target/arm/as3525/sd-as3525.c b/firmware/target/arm/as3525/sd-as3525.c index 19914abd43..771c007ca1 100644 --- a/firmware/target/arm/as3525/sd-as3525.c +++ b/firmware/target/arm/as3525/sd-as3525.c @@ -878,12 +878,7 @@ void sd_enable(bool on) return; /* nothing to do */ if(on) { - /* Enable both NAF_CLOCK & IDE clk for internal SD */ - CGU_PERI |= CGU_NAF_CLOCK_ENABLE; - CGU_IDE |= (1<<6); /* enable non AHB interface*/ #ifdef HAVE_MULTIDRIVE - /* Enable MCI clk for uSD */ - CGU_PERI |= CGU_MCI_CLOCK_ENABLE; #ifdef HAVE_BUTTON_LIGHT /* buttonlight AMSes need a bit of special handling for the buttonlight * here due to the dual mapping of GPIOD and XPD */ @@ -922,13 +917,7 @@ void sd_enable(bool on) if (buttonlight_is_on) _buttonlight_on(); #endif /* HAVE_BUTTON_LIGHT */ - /* Disable MCI clk for uSD */ - CGU_PERI &= ~CGU_MCI_CLOCK_ENABLE; #endif /* HAVE_MULTIDRIVE */ - - /* Disable both NAF_CLOCK & IDE clk for internal SD */ - CGU_PERI &= ~CGU_NAF_CLOCK_ENABLE; - CGU_IDE &= ~(1<<6); /* disable non AHB interface*/ } }