From 9fa0f79c06682111de62c027acfe26f47746ec3c Mon Sep 17 00:00:00 2001 From: Michael Sparmann Date: Tue, 20 Oct 2009 09:54:08 +0000 Subject: 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 --- firmware/export/config-ipodnano2g.h | 2 +- firmware/export/config.h | 20 ++++++++++++-------- 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 @@ /* USB defines */ #define HAVE_USBSTACK -#define USB_ENABLE_STORAGE +#define CONFIG_USBOTG USBOTG_S3C6400X #define USB_VENDOR_ID 0x05AC #define USB_PRODUCT_ID 0x1260 #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 */ #define RTC_D2 18 /* Either PCF50606 or PCF50635 */ /* USB On-the-go */ -#define USBOTG_M66591 6591 /* M:Robe 500 */ -#define USBOTG_ISP1362 1362 /* iriver H300 */ -#define USBOTG_ISP1583 1583 /* Creative Zen Vision:M */ -#define USBOTG_M5636 5636 /* iAudio X5 */ -#define USBOTG_ARC 5020 /* PortalPlayer 502x */ -#define USBOTG_JZ4740 4740 /* Ingenic Jz4740/Jz4732 */ -#define USBOTG_AS3525 3525 /* AMS AS3525 */ +#define USBOTG_M66591 6591 /* M:Robe 500 */ +#define USBOTG_ISP1362 1362 /* iriver H300 */ +#define USBOTG_ISP1583 1583 /* Creative Zen Vision:M */ +#define USBOTG_M5636 5636 /* iAudio X5 */ +#define USBOTG_ARC 5020 /* PortalPlayer 502x */ +#define USBOTG_JZ4740 4740 /* Ingenic Jz4740/Jz4732 */ +#define USBOTG_AS3525 3525 /* AMS AS3525 */ +#define USBOTG_S3C6400X 6400 /* Samsung S3C6400X, also used in the S5L8701 */ /* Multiple cores */ #define CPU 0 @@ -838,6 +839,9 @@ Lyre prototype 1 */ #define USB_HAS_INTERRUPT #elif defined(CPU_TCC780X) || defined(CPU_TCC77X) #define USB_HAS_BULK +#elif CONFIG_USBOTG == USBOTG_S3C6400X +#define USB_HAS_BULK +#define USB_HAS_INTERRUPT #endif /* CONFIG_USBOTG */ /* define the class drivers to enable */ @@ -847,7 +851,7 @@ Lyre prototype 1 */ #if (defined(TOSHIBA_GIGABEAT_S) || \ (defined(CREATIVE_ZVx) || \ defined(CPU_TCC77X) || defined(CPU_TCC780X))) || \ - (CONFIG_USBOTG == USBOTG_JZ4740) + (CONFIG_USBOTG == USBOTG_JZ4740) || defined(IPOD_NANO2G) #define USB_ENABLE_STORAGE #endif -- cgit v1.2.3