diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2008-12-15 23:49:43 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2008-12-15 23:49:43 +0000 |
commit | 66b97219fc5ddf6bb899c8b21301a08d6f38ff5c (patch) | |
tree | 390ab5a0edfda42dd44ab98f80614d3fddcf54c6 /firmware/target | |
parent | f9fb52b933c9d0f84dd33f3e5c61c61ff2042fb4 (diff) |
Actually set sd_enabled (again by Thomas Martitz)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19450 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target')
-rw-r--r-- | firmware/target/arm/as3525/ata_sd_as3525.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/ata_sd_as3525.c b/firmware/target/arm/as3525/ata_sd_as3525.c index b2393552aa..3cc8ed8282 100644 --- a/firmware/target/arm/as3525/ata_sd_as3525.c +++ b/firmware/target/arm/as3525/ata_sd_as3525.c @@ -750,6 +750,7 @@ void sd_enable(bool on) #endif CGU_IDE |= (1<<7) /* AHB interface enable */ | (1<<6) /* interface enable */; + sd_enabled = true; } else { @@ -758,6 +759,7 @@ void sd_enable(bool on) CGU_PERI &= ~CGU_MCI_CLOCK_ENABLE; #endif CGU_IDE &= ~((1<<7)|(1<<6)); + sd_enabled = false; } } |