summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-11-26 23:13:35 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-11-26 23:13:35 +0000
commit5d2757a43f3d6d0ffc4bee954f2f51bda600e345 (patch)
tree7fdb40fccaa08eb0fa5071279b321cbca37ab13a
parent09a786138c051a07c4eb16b2689faa020a9a5f34 (diff)
Enable reboot on USB-insert for e200, as it works when done c200-style
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15818 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/system-pp502x.c2
-rw-r--r--firmware/target/arm/usb-fw-pp502x.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/firmware/target/arm/system-pp502x.c b/firmware/target/arm/system-pp502x.c
index 5dfcfa9ea9..3c26305ccb 100644
--- a/firmware/target/arm/system-pp502x.c
+++ b/firmware/target/arm/system-pp502x.c
@@ -332,7 +332,7 @@ void system_init(void)
void system_reboot(void)
{
/* Reboot */
-#ifdef SANSA_C200
+#if defined(SANSA_E200) || defined(SANSA_C200)
CACHE_CTL &= ~CACHE_CTL_VECT_REMAP;
pp_i2c_send(AS3514_I2C_ADDR, DCDC15, 0x0); /* backlight off */
diff --git a/firmware/target/arm/usb-fw-pp502x.c b/firmware/target/arm/usb-fw-pp502x.c
index 84526c6863..7af699c064 100644
--- a/firmware/target/arm/usb-fw-pp502x.c
+++ b/firmware/target/arm/usb-fw-pp502x.c
@@ -57,7 +57,6 @@ void usb_init_device(void)
void usb_enable(bool on)
{
if (on) {
-#ifndef SANSA_E200
/* until we have native mass-storage mode, we want to reboot on
usb host connect */
#if defined(IRIVER_H10) || defined (IRIVER_H10_5GB)
@@ -79,7 +78,6 @@ void usb_enable(bool on)
system_reboot(); /* Reboot */
}
-#endif /* SANSA_E200 */
}
else
usb_core_exit();