[U-Boot] [PATCH] powerpc/8xxx: Update USB mode device tree fixup
Kim Phillips
kim.phillips at freescale.com
Tue Jul 19 21:38:46 CEST 2011
On Thu, 30 Jun 2011 20:25:02 -0500
Kumar Gala <kumar.gala at freescale.com> wrote:
>
> On Jun 8, 2011, at 6:44 AM, Ramneek Mehresh wrote:
>
> > Modify support for USB mode fixup:
> > - Add common support for USB mode and phy type
> > device tree fix-up for all USB controllers
> > mentioned in hwconfig string
> > - Fetch USB mode and phy type via hwconfig; if not
> > defined in hwconfig, then fetch them from env
> >
> > Signed-off-by: Ramneek Mehresh <ramneek.mehresh at freescale.com>
> > ---
> > arch/powerpc/cpu/mpc8xxx/fdt.c | 77 +++++++++++++++++++++++++++++++++------
> > 1 files changed, 65 insertions(+), 12 deletions(-)
>
> applied to 85xx
turns out this commit (72f4980) breaks some 83xx boards:
$ ./MAKEALL MPC837XERDB
Configuring for MPC837XERDB board...
/home/r1aaha/git/u-boot/include/usb.h:159:2: error: #error USB Lowlevel not defined
In file included from fdt.c:34:0:
/home/r1aaha/git/u-boot/include/usb.h:159:2: error: #error USB Lowlevel not defined
make[1]: *** [fdt.o] Error 1
it adds a USB-configured dependency by including usb.h in
arch/powerpc/cpu/mpc8xxx/fdt.c, presumably just to get the
USB_MAX_DEVICE constant.
There are multiple ways to fix:
a. configure USB in all boards that don't have it configured,
b. repurpose CONFIG_HAS_FSL_DR_USB to also configure USB,
c. remove #error USB Lowlevel not defined from usb.h,
d. hardcode USB_MAX_DEVICE in fdt.c,
e. have fdt.c loop only over existing usb nodes in the device tree.
my personal preference is e. What do you think?
Kim
More information about the U-Boot
mailing list