diff options
| author | Michael Sparmann <theseven@rockbox.org> | 2009-10-20 09:54:08 +0000 |
|---|---|---|
| committer | Michael Sparmann <theseven@rockbox.org> | 2009-10-20 09:54:08 +0000 |
| commit | 9fa0f79c06682111de62c027acfe26f47746ec3c (patch) | |
| tree | d7f754d1d30e33eb7ea7ee4800078afffe6394de | |
| parent | 218314eb51a072af56efb49d6420a8e501d52a2b (diff) | |
| download | rockbox-9fa0f79c06682111de62c027acfe26f47746ec3c.zip rockbox-9fa0f79c06682111de62c027acfe26f47746ec3c.tar.gz rockbox-9fa0f79c06682111de62c027acfe26f47746ec3c.tar.bz2 rockbox-9fa0f79c06682111de62c027acfe26f47746ec3c.tar.xz | |
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.h | 2 | ||||
| -rw-r--r-- | 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 0946610..3b50238 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 8a1adea..1975e4b 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 |