summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sparmann <theseven@rockbox.org>2009-10-20 09:54:08 +0000
committerMichael Sparmann <theseven@rockbox.org>2009-10-20 09:54:08 +0000
commit9fa0f79c06682111de62c027acfe26f47746ec3c (patch)
treed7f754d1d30e33eb7ea7ee4800078afffe6394de
parent218314eb51a072af56efb49d6420a8e501d52a2b (diff)
downloadrockbox-9fa0f79c06682111de62c027acfe26f47746ec3c.tar.gz
rockbox-9fa0f79c06682111de62c027acfe26f47746ec3c.zip
Fix some iPod Nano 2G config defines to make USB HID work.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23288 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/export/config-ipodnano2g.h2
-rw-r--r--firmware/export/config.h20
2 files changed, 13 insertions, 9 deletions
diff --git a/firmware/export/config-ipodnano2g.h b/firmware/export/config-ipodnano2g.h
index 0946610eac..3b50238c02 100644
--- a/firmware/export/config-ipodnano2g.h
+++ b/firmware/export/config-ipodnano2g.h
@@ -201,7 +201,7 @@
201 201
202/* USB defines */ 202/* USB defines */
203#define HAVE_USBSTACK 203#define HAVE_USBSTACK
204#define USB_ENABLE_STORAGE 204#define CONFIG_USBOTG USBOTG_S3C6400X
205#define USB_VENDOR_ID 0x05AC 205#define USB_VENDOR_ID 0x05AC
206#define USB_PRODUCT_ID 0x1260 206#define USB_PRODUCT_ID 0x1260
207#define USB_NUM_ENDPOINTS 5 207#define USB_NUM_ENDPOINTS 5
diff --git a/firmware/export/config.h b/firmware/export/config.h
index 8a1adeaac8..1975e4b52a 100644
--- a/firmware/export/config.h
+++ b/firmware/export/config.h
@@ -267,13 +267,14 @@ Lyre prototype 1 */
267#define RTC_D2 18 /* Either PCF50606 or PCF50635 */ 267#define RTC_D2 18 /* Either PCF50606 or PCF50635 */
268 268
269/* USB On-the-go */ 269/* USB On-the-go */
270#define USBOTG_M66591 6591 /* M:Robe 500 */ 270#define USBOTG_M66591 6591 /* M:Robe 500 */
271#define USBOTG_ISP1362 1362 /* iriver H300 */ 271#define USBOTG_ISP1362 1362 /* iriver H300 */
272#define USBOTG_ISP1583 1583 /* Creative Zen Vision:M */ 272#define USBOTG_ISP1583 1583 /* Creative Zen Vision:M */
273#define USBOTG_M5636 5636 /* iAudio X5 */ 273#define USBOTG_M5636 5636 /* iAudio X5 */
274#define USBOTG_ARC 5020 /* PortalPlayer 502x */ 274#define USBOTG_ARC 5020 /* PortalPlayer 502x */
275#define USBOTG_JZ4740 4740 /* Ingenic Jz4740/Jz4732 */ 275#define USBOTG_JZ4740 4740 /* Ingenic Jz4740/Jz4732 */
276#define USBOTG_AS3525 3525 /* AMS AS3525 */ 276#define USBOTG_AS3525 3525 /* AMS AS3525 */
277#define USBOTG_S3C6400X 6400 /* Samsung S3C6400X, also used in the S5L8701 */
277 278
278/* Multiple cores */ 279/* Multiple cores */
279#define CPU 0 280#define CPU 0
@@ -838,6 +839,9 @@ Lyre prototype 1 */
838#define USB_HAS_INTERRUPT 839#define USB_HAS_INTERRUPT
839#elif defined(CPU_TCC780X) || defined(CPU_TCC77X) 840#elif defined(CPU_TCC780X) || defined(CPU_TCC77X)
840#define USB_HAS_BULK 841#define USB_HAS_BULK
842#elif CONFIG_USBOTG == USBOTG_S3C6400X
843#define USB_HAS_BULK
844#define USB_HAS_INTERRUPT
841#endif /* CONFIG_USBOTG */ 845#endif /* CONFIG_USBOTG */
842 846
843/* define the class drivers to enable */ 847/* define the class drivers to enable */
@@ -847,7 +851,7 @@ Lyre prototype 1 */
847#if (defined(TOSHIBA_GIGABEAT_S) || \ 851#if (defined(TOSHIBA_GIGABEAT_S) || \
848 (defined(CREATIVE_ZVx) || \ 852 (defined(CREATIVE_ZVx) || \
849 defined(CPU_TCC77X) || defined(CPU_TCC780X))) || \ 853 defined(CPU_TCC77X) || defined(CPU_TCC780X))) || \
850 (CONFIG_USBOTG == USBOTG_JZ4740) 854 (CONFIG_USBOTG == USBOTG_JZ4740) || defined(IPOD_NANO2G)
851#define USB_ENABLE_STORAGE 855#define USB_ENABLE_STORAGE
852#endif 856#endif
853 857