[U-Boot] [PATCH 3/6] mpc83xx: USB: Reorganized its support
Kumar Gala
galak at kernel.crashing.org
Thu May 21 15:39:34 CEST 2009
On May 21, 2009, at 7:02 AM, Vivek Mahajan wrote:
> The following patch reorganizes/reworks the USB support for mpc83xx
> as under:-
>
> * Moves the 83xx USB clock init from drivers/usb/host/ehci-fsl.c to
> cpu/mpx83xx/cpu_init.c
>
> * Board specific usb_phy_type is read from the environment
>
> * Adds USB EHCI specific structure in include/usb/ehci-fsl.h
>
> * Copyrights revamped in most of the following files
>
> Signed-off-by: Vivek Mahajan <vivek.mahajan at freescale.com>
> ---
> common/env_common.c | 3 ++
> common/env_embedded.c | 3 ++
> cpu/mpc83xx/cpu_init.c | 19 ++++++++++++-
> drivers/usb/host/ehci-fsl.c | 53 +++++++++++
> +-----------------------
> include/asm-ppc/immap_83xx.h | 5 ++-
> include/usb/ehci-fsl.h | 63 +++++++++++++++++++++++++++++++++
> ++++++++-
> 6 files changed, 108 insertions(+), 38 deletions(-)
>
> diff --git a/common/env_common.c b/common/env_common.c
> index 6be3bb0..e3811ca 100644
> --- a/common/env_common.c
> +++ b/common/env_common.c
> @@ -133,6 +133,9 @@ uchar default_environment[] = {
> #if defined(CONFIG_PCI_BOOTDELAY) && (CONFIG_PCI_BOOTDELAY > 0)
> "pcidelay=" MK_STR(CONFIG_PCI_BOOTDELAY) "\0"
> #endif
> +#if defined(CONFIG_USB_PHY_TYPE)
> + "usb_phy_type=" MK_STR(CONFIG_USB_PHY_TYPE) "\0"
> +#endif
> #ifdef CONFIG_EXTRA_ENV_SETTINGS
> CONFIG_EXTRA_ENV_SETTINGS
> #endif
> diff --git a/common/env_embedded.c b/common/env_embedded.c
> index ae6cac4..af5b9f5 100644
> --- a/common/env_embedded.c
> +++ b/common/env_embedded.c
> @@ -180,6 +180,9 @@ env_t environment __PPCENV__ = {
> #if defined(CONFIG_PCI_BOOTDELAY) && (CONFIG_PCI_BOOTDELAY > 0)
> "pcidelay=" MK_STR(CONFIG_PCI_BOOTDELAY) "\0"
> #endif
> +#if defined(CONFIG_USB_PHY_TYPE)
> + "usb_phy_type=" MK_STR(CONFIG_USB_PHY_TYPE) "\0"
> +#endif
> #ifdef CONFIG_EXTRA_ENV_SETTINGS
> CONFIG_EXTRA_ENV_SETTINGS
> #endif
I'm guessing Wolfgang isn't going to like this and suggest we just do
this via board specific setting of CONFIG_EXTRA_ENV_SETTINGS
- k
More information about the U-Boot
mailing list