diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2010-07-02 06:00:00 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2010-07-02 06:00:00 +0000 |
commit | 0f47ffe0e429c1457e16fddb5f27abc9bf802535 (patch) | |
tree | 6dc6c22865f35b43b7fc0e1dab168ac2f170f965 /firmware/target/arm/as3525/sd-as3525.c | |
parent | 9d6851688e018b50e296756beffc9ced97b72df0 (diff) |
AMS SoC's: Some register bit changes need interrupt protection: timer API and CGU_PERI.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27236 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525/sd-as3525.c')
-rw-r--r-- | firmware/target/arm/as3525/sd-as3525.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/sd-as3525.c b/firmware/target/arm/as3525/sd-as3525.c index 9bfb2a9412..6e5845cf0a 100644 --- a/firmware/target/arm/as3525/sd-as3525.c +++ b/firmware/target/arm/as3525/sd-as3525.c @@ -561,9 +561,9 @@ int sd_init(void) | (AS3525_IDE_DIV << 2) | AS3525_CLK_PLLA; /* clock source = PLLA */ - CGU_PERI |= CGU_NAF_CLOCK_ENABLE; + bitset32(&CGU_PERI, CGU_NAF_CLOCK_ENABLE); #ifdef HAVE_MULTIDRIVE - CGU_PERI |= CGU_MCI_CLOCK_ENABLE; + bitset32(&CGU_PERI, CGU_MCI_CLOCK_ENABLE); CCU_IO &= ~(1<<3); /* bits 3:2 = 01, xpd is SD interface */ CCU_IO |= (1<<2); #endif |