summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx31/dvfs_dptc-imx31.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2010-06-11 14:39:35 +0000
committerMichael Sevakis <jethead71@rockbox.org>2010-06-11 14:39:35 +0000
commit60f843bf181fba3fc509955195ecea786cc002b2 (patch)
tree31399c08bb3ec25dd98318e6f23bcd2f4a0191d0 /firmware/target/arm/imx31/dvfs_dptc-imx31.c
parentd5a27c2fb1d653bb133a57acacc06b9efdc3ce4c (diff)
downloadrockbox-60f843bf181fba3fc509955195ecea786cc002b2.tar.gz
rockbox-60f843bf181fba3fc509955195ecea786cc002b2.zip
Configure Gigabeat S with EABI compiler by default. Implement the INIT section that this enables (due to selective need for long calls). Remove pcm_postinit from INIT section since it's asynchronous. Disable strict aliasing on SPC codec for now just to shut it up.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26779 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/imx31/dvfs_dptc-imx31.c')
-rw-r--r--firmware/target/arm/imx31/dvfs_dptc-imx31.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/target/arm/imx31/dvfs_dptc-imx31.c b/firmware/target/arm/imx31/dvfs_dptc-imx31.c
index 129e47d55e..6bacc20c10 100644
--- a/firmware/target/arm/imx31/dvfs_dptc-imx31.c
+++ b/firmware/target/arm/imx31/dvfs_dptc-imx31.c
@@ -248,7 +248,7 @@ static __attribute__((naked, interrupt("IRQ"))) void CCM_DVFS_HANDLER(void)
248 248
249 249
250/* Initialize the DVFS hardware */ 250/* Initialize the DVFS hardware */
251static void dvfs_init(void) 251static void INIT_ATTR dvfs_init(void)
252{ 252{
253 if (CCM_PMCR0 & CCM_PMCR0_DVFEN) 253 if (CCM_PMCR0 & CCM_PMCR0_DVFEN)
254 { 254 {
@@ -514,7 +514,7 @@ static __attribute__((interrupt("IRQ"))) void CCM_CLK_HANDLER(void)
514 514
515 515
516/* Initialize the DPTC hardware */ 516/* Initialize the DPTC hardware */
517static void dptc_init(void) 517static void INIT_ATTR dptc_init(void)
518{ 518{
519 /* Force DPTC off if running for some reason. */ 519 /* Force DPTC off if running for some reason. */
520 imx31_regmod32(&CCM_PMCR0, CCM_PMCR0_PTVAIM, 520 imx31_regmod32(&CCM_PMCR0, CCM_PMCR0_PTVAIM,
@@ -590,7 +590,7 @@ static void dptc_stop(void)
590/** Main module interface **/ 590/** Main module interface **/
591 591
592/* Initialize DVFS and DPTC */ 592/* Initialize DVFS and DPTC */
593void dvfs_dptc_init(void) 593void INIT_ATTR dvfs_dptc_init(void)
594{ 594{
595 dptc_init(); 595 dptc_init();
596 dvfs_init(); 596 dvfs_init();