diff options
author | ramneek mehresh <ramneek.mehresh@freescale.com> | 2013-09-12 16:35:49 +0530 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2013-10-24 09:35:09 -0700 |
commit | 77354e9d502837c156149109f4dd36b7bc12d6b3 (patch) | |
tree | 1e7b8a960f284f6ef9b8e97f45bf79cf9c5c3aa2 /include | |
parent | f1810d851c475740889d82127c53a70cf06f912c (diff) | |
download | u-boot-imx-77354e9d502837c156149109f4dd36b7bc12d6b3.zip u-boot-imx-77354e9d502837c156149109f4dd36b7bc12d6b3.tar.gz u-boot-imx-77354e9d502837c156149109f4dd36b7bc12d6b3.tar.bz2 |
powerpc/usb:Differentiate USB controller base address
Introduce different macros for storing addresses of multiple
USB controllers. This is required for successful initialization
and usage of multiple USB controllers inside u-boot
Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/usb/ehci-fsl.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/include/usb/ehci-fsl.h b/include/usb/ehci-fsl.h index 9e106fc..734305b 100644 --- a/include/usb/ehci-fsl.h +++ b/include/usb/ehci-fsl.h @@ -149,11 +149,18 @@ #define MPC83XX_SCCR_USB_DRCM_10 0x00200000 #if defined(CONFIG_MPC83xx) -#define CONFIG_SYS_FSL_USB_ADDR CONFIG_SYS_MPC83xx_USB_ADDR +#define CONFIG_SYS_FSL_USB1_ADDR CONFIG_SYS_MPC83xx_USB1_ADDR +#if defined(CONFIG_MPC834x) +#define CONFIG_SYS_FSL_USB2_ADDR CONFIG_SYS_MPC83xx_USB2_ADDR +#else +#define CONFIG_SYS_FSL_USB2_ADDR 0 +#endif #elif defined(CONFIG_MPC85xx) -#define CONFIG_SYS_FSL_USB_ADDR CONFIG_SYS_MPC85xx_USB_ADDR +#define CONFIG_SYS_FSL_USB1_ADDR CONFIG_SYS_MPC85xx_USB1_ADDR +#define CONFIG_SYS_FSL_USB2_ADDR CONFIG_SYS_MPC85xx_USB2_ADDR #elif defined(CONFIG_MPC512X) -#define CONFIG_SYS_FSL_USB_ADDR CONFIG_SYS_MPC512x_USB_ADDR +#define CONFIG_SYS_FSL_USB1_ADDR CONFIG_SYS_MPC512x_USB1_ADDR +#define CONFIG_SYS_FSL_USB2_ADDR 0 #endif /* |