diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-11-16 23:42:19 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-11-16 23:42:19 +0000 |
commit | 73a35a1aa445932176fca78688d43c636a3fda5e (patch) | |
tree | ba8cca63507301045a685883b3b23b79eb3e476e /firmware/drivers/ata.c | |
parent | d79f3a1e845bcad2d64cbaf467c0f0dae596f537 (diff) |
Reverted erroneous commit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7918 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/ata.c')
-rw-r--r-- | firmware/drivers/ata.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c index c0799f30e4..9cc49c1731 100644 --- a/firmware/drivers/ata.c +++ b/firmware/drivers/ata.c @@ -1413,20 +1413,16 @@ int ata_init(void) or_b(0x02, &PADRH); /* release ATA reset */ PACR2 &= 0xBFFF; /* GPIO function for PA7 (IDE enable) */ #elif CONFIG_CPU == MCF5249 -#ifdef HAVE_ATA_LED_CTRL /* Enable disk LED & ISD chip power control */ and_l(~0x0000240, &GPIO_OUT); or_l(0x00000240, &GPIO_ENABLE); or_l(0x00000200, &GPIO_FUNCTION); -#endif /* ATA reset */ - and_l(~0x00080000, &GPIO_OUT); + or_l(0x00080000, &GPIO_OUT); or_l(0x00080000, &GPIO_ENABLE); or_l(0x00080000, &GPIO_FUNCTION); - sleep(10); - or_l(0x00080000, &GPIO_OUT); - + /* FYI: The IDECONFIGx registers are set by set_cpu_frequency() */ #elif CONFIG_CPU == PP5020 /* From ipod-ide.c:ipod_ide_register() */ |