[U-Boot] [PATCH] Tegra: P2571: Clean up config file

Simon Glass sjg at chromium.org
Fri Jul 31 01:13:59 CEST 2015


Hi Tom,

On 30 July 2015 at 16:28, Tom Warren <TWarren at nvidia.com> wrote:
> Simon,
>
>> -----Original Message-----
>> From: sjg at google.com [mailto:sjg at google.com] On Behalf Of Simon Glass
>> Sent: Thursday, July 30, 2015 2:33 PM
>> To: Tom Warren
>> Cc: U-Boot Mailing List; Tom Warren; Stephen Warren
>> Subject: Re: [PATCH] Tegra: P2571: Clean up config file
>>
>> Hi Tom,
>>
>> On 30 July 2015 at 15:09, Tom Warren <twarren at nvidia.com> wrote:
>> >
>> > Removed NS16550_COM1 #define, not used since there's no SPL for T210
>> > Also changed the number of USB controllers to 1 as only USBD is used.
>> >
>> > Signed-off-by: Tom Warren <twarren at nvidia.com>
>> > ---
>> >  include/configs/p2571.h | 7 +------
>> >  1 file changed, 1 insertion(+), 6 deletions(-)
>> >
>> > diff --git a/include/configs/p2571.h b/include/configs/p2571.h index
>> > 5df7d2f..b22117b 100644
>> > --- a/include/configs/p2571.h
>> > +++ b/include/configs/p2571.h
>> > @@ -22,7 +22,6 @@
>> >  /* Board-specific serial config */
>> >  #define CONFIG_SERIAL_MULTI
>> >  #define CONFIG_TEGRA_ENABLE_UARTA
>> > -#define CONFIG_SYS_NS16550_COM1                NV_PA_APB_UARTA_BASE
>> >
>> >  /* I2C */
>> >  #define CONFIG_SYS_I2C_TEGRA
>> > @@ -51,7 +50,7 @@
>> >  /* USB2.0 Host support */
>> >  #define CONFIG_USB_EHCI
>> >  #define CONFIG_USB_EHCI_TEGRA
>> > -#define CONFIG_USB_MAX_CONTROLLER_COUNT        2
>> > +#define CONFIG_USB_MAX_CONTROLLER_COUNT        1
>>
>> You should be able to drop this now that Tegra uses driver model for USB.
> Doesn't seem to work on P2571. If I drop MAX_CONTROLLER_COUNT, it builds, but I get "EHCI failed to shut down host controller" errors on usb start/reset, and I don't see any of my periphs (mouse, USB stick, network dongle). With it in there as I have it above, everything works.
>

Odd...

Do you have CONFIG_DM_USB defined for this board? (check .config or
u-boot.cfg after a build). Also are you basing on latest mainline?
Hans fixed a few bugs which I applied in the past week.

>>
>> >  #define CONFIG_USB_STORAGE
>> >  #define CONFIG_CMD_USB
>> >
>> > @@ -62,10 +61,6 @@
>> >  /* General networking support */
>> >  #define CONFIG_CMD_DHCP
>> >
>> > -/*
>> > - * TODO(twarren at nvidia.com) - add tegra-common-usb-gadget.h back
>> > - * breaks 64-bit build in ci_udc.c
>> > - */
>> >  #include "tegra-common-usb-gadget.h"
>> >  #include "tegra-common-post.h"
>> >
>> > --
>> > 1.8.2.1.610.g562af5b
>> >
>>
>> Regards,
>> Simon
>
> --
> nvpublic


Regards,
Simon


More information about the U-Boot mailing list