From d4313ce88b479b896fb7d48afc4da5fcdc20d97b Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Mon, 7 Feb 2005 01:47:22 +0000 Subject: iRiver: Correct cold start detection git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5824 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/ata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'firmware/drivers/ata.c') 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 -- cgit v1.2.3