diff options
Diffstat (limited to 'firmware/target/arm/as3525/sd-as3525v2.c')
-rw-r--r-- | firmware/target/arm/as3525/sd-as3525v2.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/sd-as3525v2.c b/firmware/target/arm/as3525/sd-as3525v2.c index a668f65e0c..386b76e758 100644 --- a/firmware/target/arm/as3525/sd-as3525v2.c +++ b/firmware/target/arm/as3525/sd-as3525v2.c | |||
@@ -953,8 +953,20 @@ long sd_last_disk_activity(void) | |||
953 | 953 | ||
954 | void sd_enable(bool on) | 954 | void sd_enable(bool on) |
955 | { | 955 | { |
956 | /* TODO */ | 956 | if (on) |
957 | (void) on; | 957 | { |
958 | CGU_PERI |= CGU_MCI_CLOCK_ENABLE; | ||
959 | CGU_IDE |= (1<<7); /* AHB interface enable */ | ||
960 | CGU_MEMSTICK |= (1<<7); /* interface enable */ | ||
961 | CGU_SDSLOT |= (1<<7); /* interface enable */ | ||
962 | } | ||
963 | else | ||
964 | { | ||
965 | CGU_SDSLOT &= ~(1<<7); /* interface enable */ | ||
966 | CGU_MEMSTICK &= ~(1<<7); /* interface enable */ | ||
967 | CGU_IDE &= ~(1<<7); /* AHB interface enable */ | ||
968 | CGU_PERI &= ~CGU_MCI_CLOCK_ENABLE; | ||
969 | } | ||
958 | } | 970 | } |
959 | 971 | ||
960 | tCardInfo *card_get_info_target(int card_no) | 972 | tCardInfo *card_get_info_target(int card_no) |