summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-02-07 01:47:22 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-02-07 01:47:22 +0000
commitd4313ce88b479b896fb7d48afc4da5fcdc20d97b (patch)
treef973d955ac9a892cd06ad0603dbe20f8efd78607 /firmware
parentbf11674d10e9e2f95eb7707beded6152493b42da (diff)
iRiver: Correct cold start detection
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5824 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/ata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c
index 355aaaf058..339073969c 100644
--- a/firmware/drivers/ata.c
+++ b/firmware/drivers/ata.c
@@ -1347,7 +1347,7 @@ int ata_init(void)
/* TODO: check for cold start (never happenning now) */
bool coldstart = false;
#elif CONFIG_CPU == MCF5249
- bool coldstart = true; /* FIXME */
+ bool coldstart = (GPIO_FUNCTION & 0x00080000) == 0;
#else
bool coldstart = (PACR2 & 0x4000) != 0;
#endif