summaryrefslogtreecommitdiff
path: root/firmware/export
diff options
context:
space:
mode:
authorDave Chapman <dave@dchapman.com>2006-01-07 00:43:48 +0000
committerDave Chapman <dave@dchapman.com>2006-01-07 00:43:48 +0000
commitb82c441f290cda0faffbf467aaf4eb990c07dcc9 (patch)
tree894ad24dee14e64cd89ca8c135332d5578a4e906 /firmware/export
parentee927e6514d38fe29524aea39d1f0883d3005ad3 (diff)
downloadrockbox-b82c441f290cda0faffbf467aaf4eb990c07dcc9.zip
rockbox-b82c441f290cda0faffbf467aaf4eb990c07dcc9.tar.gz
rockbox-b82c441f290cda0faffbf467aaf4eb990c07dcc9.tar.bz2
rockbox-b82c441f290cda0faffbf467aaf4eb990c07dcc9.tar.xz
iPod: Add USB detection. When inserting the USB cable, hold down MENU to charge via USB, otherwise Rockbox will reboot into the Disk Mode application stored in flash
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8303 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r--firmware/export/config-ipodcolor.h3
-rw-r--r--firmware/export/config-ipodnano.h3
-rw-r--r--firmware/export/config-ipodvideo.h3
-rw-r--r--firmware/export/pp5020.h3
4 files changed, 12 insertions, 0 deletions
diff --git a/firmware/export/config-ipodcolor.h b/firmware/export/config-ipodcolor.h
index 778055f..b88c9bc 100644
--- a/firmware/export/config-ipodcolor.h
+++ b/firmware/export/config-ipodcolor.h
@@ -84,6 +84,9 @@
#define USB_IPODSTYLE
+/* define this if the unit can be powered or charged via USB */
+#define HAVE_USB_POWER
+
/* Virtual LED (icon) */
#define CONFIG_LED LED_VIRTUAL
diff --git a/firmware/export/config-ipodnano.h b/firmware/export/config-ipodnano.h
index 86cc279..207aa18 100644
--- a/firmware/export/config-ipodnano.h
+++ b/firmware/export/config-ipodnano.h
@@ -86,6 +86,9 @@
#define USB_IPODSTYLE
+/* define this if the unit can be powered or charged via USB */
+#define HAVE_USB_POWER
+
/* Virtual LED (icon) */
#define CONFIG_LED LED_VIRTUAL
diff --git a/firmware/export/config-ipodvideo.h b/firmware/export/config-ipodvideo.h
index e06e999..d6d9bbc 100644
--- a/firmware/export/config-ipodvideo.h
+++ b/firmware/export/config-ipodvideo.h
@@ -86,6 +86,9 @@
#define USB_IPODSTYLE
+/* define this if the unit can be powered or charged via USB */
+#define HAVE_USB_POWER
+
/* Virtual LED (icon) */
#define CONFIG_LED LED_VIRTUAL
diff --git a/firmware/export/pp5020.h b/firmware/export/pp5020.h
index d2dbffc..14dd2ba 100644
--- a/firmware/export/pp5020.h
+++ b/firmware/export/pp5020.h
@@ -87,4 +87,7 @@
#define PP5020_SER1_MASK (1 << (PP5020_SER1_IRQ-32))
#define PP5020_I2C_MASK (1 << (PP5020_I2C_IRQ-32))
+#define USB2D_IDENT (*(volatile unsigned long*)(0xc5000000))
+#define USB_STATUS (*(volatile unsigned long*)(0xc50001a4))
+
#endif