diff options
author | ramneek mehresh <ramneek.mehresh@freescale.com> | 2013-10-18 17:40:17 +0530 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2013-10-24 09:35:03 -0700 |
commit | f1810d851c475740889d82127c53a70cf06f912c (patch) | |
tree | d2bead1e3a7790eb9cfd1f247a05991aae5ba65b /arch/powerpc/cpu | |
parent | 9c25ee6d3a63d450a89ed5bb35002210a91699a2 (diff) | |
download | u-boot-imx-f1810d851c475740889d82127c53a70cf06f912c.zip u-boot-imx-f1810d851c475740889d82127c53a70cf06f912c.tar.gz u-boot-imx-f1810d851c475740889d82127c53a70cf06f912c.tar.bz2 |
powerpc/usb:Define CONFIG_USB_MAX_CONTROLLER_COUNT for all 85xx socs
CONFIG_USB_MAX_CONTROLLER_COUNT macro recently defined for
initializing all USB controllers on a given platform. This
macro is defined for all 85xx socs
Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com>
Diffstat (limited to 'arch/powerpc/cpu')
-rw-r--r-- | arch/powerpc/cpu/mpc8xxx/fdt.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/powerpc/cpu/mpc8xxx/fdt.c b/arch/powerpc/cpu/mpc8xxx/fdt.c index eb7cbbc..9273745 100644 --- a/arch/powerpc/cpu/mpc8xxx/fdt.c +++ b/arch/powerpc/cpu/mpc8xxx/fdt.c @@ -15,7 +15,9 @@ #include <phy.h> #include <hwconfig.h> -#define FSL_MAX_NUM_USB_CTRLS 2 +#ifndef CONFIG_USB_MAX_CONTROLLER_COUNT +#define CONFIG_USB_MAX_CONTROLLER_COUNT 1 +#endif #if defined(CONFIG_MP) && (defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx)) static int ft_del_cpuhandle(void *blob, int cpuhandle) @@ -128,7 +130,7 @@ void fdt_fixup_dr_usb(void *blob, bd_t *bd) char str[5]; int i, j; - for (i = 1; i <= FSL_MAX_NUM_USB_CTRLS; i++) { + for (i = 1; i <= CONFIG_USB_MAX_CONTROLLER_COUNT; i++) { int mode_idx = -1, phy_idx = -1; snprintf(str, 5, "%s%d", "usb", i); if (hwconfig(str)) { |