diff options
author | Karl Kurbjun <kkurbjun@gmail.com> | 2009-12-15 01:23:20 +0000 |
---|---|---|
committer | Karl Kurbjun <kkurbjun@gmail.com> | 2009-12-15 01:23:20 +0000 |
commit | 5bc85067eb343863a13598fa3088df08bc0c92c6 (patch) | |
tree | 1dec6e65356150927f3521982d838635ea0e920e | |
parent | 7c1fa7cf6133cf7270f7c5d91e91b4c947253491 (diff) |
M:Robe 500: Add in coldstart detection.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23999 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/target/arm/tms320dm320/mrobe-500/ata-mr500.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/target/arm/tms320dm320/mrobe-500/ata-mr500.c b/firmware/target/arm/tms320dm320/mrobe-500/ata-mr500.c index 7250a2437b..c6eac7666c 100644 --- a/firmware/target/arm/tms320dm320/mrobe-500/ata-mr500.c +++ b/firmware/target/arm/tms320dm320/mrobe-500/ata-mr500.c @@ -52,7 +52,8 @@ void ata_enable(bool on) bool ata_is_coldstart(void) { - return true; + /* If the reset pin direction is unconfigured it is a coldstart */ + return (IO_GIO_DIR0&(1<<10)); } void ata_device_init(void) |