From: Kim Phillips Date: Tue, 19 Jul 2011 14:38:46 -0500 Subject: [U-Boot] [PATCH] powerpc/8xxx: Update USB mode device tree fixup In-Reply-To: References: <1307533460-15864-1-git-send-email-ramneek.mehresh@freescale.com> Message-ID: <20110719143846.4d29ef03.kim.phillips@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, 30 Jun 2011 20:25:02 -0500 Kumar Gala 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 > > --- > > 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