From 43991cdc8f542921822899906a26170afe88d9c0 Mon Sep 17 00:00:00 2001 From: Jack Halpin Date: Thu, 3 Dec 2009 20:06:46 +0000 Subject: 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 --- firmware/target/arm/as3525/ata_sd_as3525.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'firmware/target') 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*/ } } -- cgit v1.2.3