diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-08-23 10:58:30 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-08-23 10:58:30 -0600 |
commit | 5d2bb2fcaaa33480b2e5fdf1ad522b25b2f5deed (patch) | |
tree | 03e7a6c895fc964e04870d54240449b1a47ba02b /nuttx/configs/sama5d3x-ek/src/sama5d3x-ek.h | |
parent | 4d5faa2a3e5001dccc2e9d728f526937e5ef683f (diff) | |
download | px4-nuttx-5d2bb2fcaaa33480b2e5fdf1ad522b25b2f5deed.tar.gz px4-nuttx-5d2bb2fcaaa33480b2e5fdf1ad522b25b2f5deed.tar.bz2 px4-nuttx-5d2bb2fcaaa33480b2e5fdf1ad522b25b2f5deed.zip |
SAMA5: Add support for sharing ports when both OHCI and EHCI are enabled
Diffstat (limited to 'nuttx/configs/sama5d3x-ek/src/sama5d3x-ek.h')
-rw-r--r-- | nuttx/configs/sama5d3x-ek/src/sama5d3x-ek.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/nuttx/configs/sama5d3x-ek/src/sama5d3x-ek.h b/nuttx/configs/sama5d3x-ek/src/sama5d3x-ek.h index 9f91aee92..dd77e0f66 100644 --- a/nuttx/configs/sama5d3x-ek/src/sama5d3x-ek.h +++ b/nuttx/configs/sama5d3x-ek/src/sama5d3x-ek.h @@ -58,6 +58,7 @@ #define HAVE_HSMCI_MTD 1 #define HAVE_AT25_MTD 1 #define HAVE_USBHOST 1 +#define HAVE_USBDEV 1 /* HSMCI */ /* Can't support MMC/SD if the card interface(s) are not enable */ @@ -120,12 +121,13 @@ #endif #if !defined(CONFIG_SAMA5_UDPHS) +# undef HAVE_USBDEV #endif /* CONFIG_USBDEV and CONFIG_USBHOST must also be defined */ -#if defined(CONFIG_USBDEV) -#else +#if !defined(CONFIG_USBDEV) +# undef HAVE_USBDEV #endif #if defined(CONFIG_USBHOST) @@ -137,11 +139,6 @@ # undef CONFIG_SAMA5_EHCI #endif -#if defined(CONFIG_SAMA5_OHCI) && defined(CONFIG_SAMA5_EHCI) -# warning Both CONFIG_SAMA5_OHCI and CONFIG_SAMA5_EHCI are defined -# undef CONFIG_SAMA5_EHCI -#endif - #if !defined(CONFIG_SAMA5_OHCI) && !defined(CONFIG_SAMA5_EHCI) # undef HAVE_USBHOST #endif |