diff options
author | Jack Halpin <jack.halpin@gmail.com> | 2009-12-03 20:06:46 +0000 |
---|---|---|
committer | Jack Halpin <jack.halpin@gmail.com> | 2009-12-03 20:06:46 +0000 |
commit | 43991cdc8f542921822899906a26170afe88d9c0 (patch) | |
tree | 10933173b9036caf9e5547cae09991cba9cca2eb /firmware | |
parent | d414b0a02712f2a591fda47e9f892763b77114b9 (diff) | |
download | rockbox-43991cdc8f542921822899906a26170afe88d9c0.tar.gz rockbox-43991cdc8f542921822899906a26170afe88d9c0.zip |
Sansa AMS: The internal SD does not use the IDE AHB interface so remove references to it. It does use the other non AHB interface.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23836 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/target/arm/as3525/ata_sd_as3525.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/firmware/target/arm/as3525/ata_sd_as3525.c b/firmware/target/arm/as3525/ata_sd_as3525.c index e04e439964..6270f4363b 100644 --- a/firmware/target/arm/as3525/ata_sd_as3525.c +++ b/firmware/target/arm/as3525/ata_sd_as3525.c @@ -498,11 +498,9 @@ static void init_pl180_controller(const int drive) int sd_init(void) { int ret; - CGU_IDE = (1<<7) /* AHB interface enable */ | - (1<<6) /* interface enable */ | - (AS3525_IDE_DIV << 2) | - AS3525_CLK_PLLA; /* clock source = PLLA */ - + CGU_IDE = (1<<6) /* enable non AHB interface*/ + | (AS3525_IDE_DIV << 2) + | AS3525_CLK_PLLA; /* clock source = PLLA */ CGU_PERI |= CGU_NAF_CLOCK_ENABLE; #ifdef HAVE_MULTIDRIVE @@ -831,8 +829,7 @@ void sd_enable(bool on) { /* Enable both NAF_CLOCK & IDE clk for internal SD */ CGU_PERI |= CGU_NAF_CLOCK_ENABLE; - CGU_IDE |= ((1<<7) /* IDE AHB interface enable */ - | (1<<6)); /* IDE interface enable */ + CGU_IDE |= (1<<6); /* enable non AHB interface*/ #ifdef HAVE_MULTIDRIVE /* Enable MCI clk for uSD */ CGU_PERI |= CGU_MCI_CLOCK_ENABLE; @@ -879,8 +876,7 @@ void sd_enable(bool on) /* Disable both NAF_CLOCK & IDE clk for internal SD */ CGU_PERI &= ~CGU_NAF_CLOCK_ENABLE; - CGU_IDE &= ~((1<<7) /* IDE AHB interface disable */ - | (1<<6)); /* IDE interface disable */ + CGU_IDE &= ~(1<<6); /* disable non AHB interface*/ } } |