[U-Boot] [PATCH] powerpc: mpc85xx: Fix compiling error for usb errata

Marek Vasut marex at denx.de
Thu Jul 7 01:29:02 CEST 2016


On 07/07/2016 01:18 AM, York Sun wrote:
> Commit 9262367 moves USB errata workaround into a C file. This
> causes compiling error for SPL targets, as well as kmcoge4 and
> kmlion1. The errata command is useless in SPL, so don't build
> it. For kmcoge4 and kmlion1, define CONFIG_USB_EHCI_FSL in the
> common header file to build the errata file.
>
> Signed-off-by: York Sun <york.sun at nxp.com>
> Cc: Marek Vasut <marex at denx.de>
> Cc: Ed Swarthout <Ed.Swarthout at nxp.com>
> Cc: Sriram Dash <sriram.dash at nxp.com>
> Fixes: 92623672f9d3 ("fsl: usb: make errata function common for PPC and ARM")

Please send me a patch which applies on top of u-boot-usb/master .

> ---
>
>  arch/powerpc/cpu/mpc85xx/Makefile   | 2 ++
>  include/configs/km/kmp204x-common.h | 1 +
>  2 files changed, 3 insertions(+)
>
> diff --git a/arch/powerpc/cpu/mpc85xx/Makefile b/arch/powerpc/cpu/mpc85xx/Makefile
> index 65c26c0..f4c4fe2 100644
> --- a/arch/powerpc/cpu/mpc85xx/Makefile
> +++ b/arch/powerpc/cpu/mpc85xx/Makefile
> @@ -26,7 +26,9 @@ else
>
>  obj-$(CONFIG_MP)	+= release.o
>
> +ifndef CONFIG_SPL_BUILD
>  obj-$(CONFIG_CMD_ERRATA) += cmd_errata.o
> +endif
>  obj-$(CONFIG_CPM2)	+= commproc.o
>
>  obj-$(CONFIG_CPM2)	+= ether_fcc.o
> diff --git a/include/configs/km/kmp204x-common.h b/include/configs/km/kmp204x-common.h
> index 028623d..5bdda22 100644
> --- a/include/configs/km/kmp204x-common.h
> +++ b/include/configs/km/kmp204x-common.h
> @@ -406,6 +406,7 @@ int get_scl(void);
>  #endif
>
>  #define __USB_PHY_TYPE	utmi
> +#define CONFIG_USB_EHCI_FSL
>
>  /*
>   * Environment Configuration
>


-- 
Best regards,
Marek Vasut


More information about the U-Boot mailing list