mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
FS#11402 by me : sd_enable for Sansa AMSv2
Gets a bit more battery life Adjust current usage, it was a bit too low for Clipv2/Clip+ git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26866 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d258c58937
commit
46e1231a44
4 changed files with 17 additions and 5 deletions
|
|
@ -953,8 +953,20 @@ long sd_last_disk_activity(void)
|
|||
|
||||
void sd_enable(bool on)
|
||||
{
|
||||
/* TODO */
|
||||
(void) on;
|
||||
if (on)
|
||||
{
|
||||
CGU_PERI |= CGU_MCI_CLOCK_ENABLE;
|
||||
CGU_IDE |= (1<<7); /* AHB interface enable */
|
||||
CGU_MEMSTICK |= (1<<7); /* interface enable */
|
||||
CGU_SDSLOT |= (1<<7); /* interface enable */
|
||||
}
|
||||
else
|
||||
{
|
||||
CGU_SDSLOT &= ~(1<<7); /* interface enable */
|
||||
CGU_MEMSTICK &= ~(1<<7); /* interface enable */
|
||||
CGU_IDE &= ~(1<<7); /* AHB interface enable */
|
||||
CGU_PERI &= ~CGU_MCI_CLOCK_ENABLE;
|
||||
}
|
||||
}
|
||||
|
||||
tCardInfo *card_get_info_target(int card_no)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue