summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2009-07-06 14:20:52 +0000
committerRafaël Carré <rafael.carre@gmail.com>2009-07-06 14:20:52 +0000
commite3636a8f32c10e4ae022472cc662be958f1e7fd3 (patch)
treecb77c697667883bec09abeadd873b428daf4bb8e /firmware/target/arm
parentc1780af9fcc6b7751b267e4e9577bbb2424a1169 (diff)
downloadrockbox-e3636a8f32c10e4ae022472cc662be958f1e7fd3.tar.gz
rockbox-e3636a8f32c10e4ae022472cc662be958f1e7fd3.tar.bz2
rockbox-e3636a8f32c10e4ae022472cc662be958f1e7fd3.zip
Samsa SD driver : acknowledge USB events, now reboots on USB insertion
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21690 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/as3525/ata_sd_as3525.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/ata_sd_as3525.c b/firmware/target/arm/as3525/ata_sd_as3525.c
index 4ce14383f0..46f52abf94 100644
--- a/firmware/target/arm/as3525/ata_sd_as3525.c
+++ b/firmware/target/arm/as3525/ata_sd_as3525.c
@@ -44,6 +44,7 @@
#include "stdbool.h"
#include "ata_idle_notify.h"
#include "sd.h"
+#include "usb.h"
#ifdef HAVE_HOTSWAP
#include "disk.h"
@@ -401,7 +402,7 @@ static void sd_thread(void)
}
}
break;
-#if 0
+
case SYS_USB_CONNECTED:
usb_acknowledge(SYS_USB_CONNECTED_ACK);
/* Wait until the USB cable is extracted again */
@@ -411,7 +412,6 @@ static void sd_thread(void)
case SYS_USB_DISCONNECTED:
usb_acknowledge(SYS_USB_DISCONNECTED_ACK);
break;
-#endif
}
}
}