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)
downloadrockbox-d4313ce88b479b896fb7d48afc4da5fcdc20d97b.tar.gz
rockbox-d4313ce88b479b896fb7d48afc4da5fcdc20d97b.zip
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)
1347 /* TODO: check for cold start (never happenning now) */ 1347 /* TODO: check for cold start (never happenning now) */
1348 bool coldstart = false; 1348 bool coldstart = false;
1349#elif CONFIG_CPU == MCF5249 1349#elif CONFIG_CPU == MCF5249
1350 bool coldstart = true; /* FIXME */ 1350 bool coldstart = (GPIO_FUNCTION & 0x00080000) == 0;
1351#else 1351#else
1352 bool coldstart = (PACR2 & 0x4000) != 0; 1352 bool coldstart = (PACR2 & 0x4000) != 0;
1353#endif 1353#endif