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....@nxp.com> Cc: Marek Vasut <ma...@denx.de> Cc: Ed Swarthout <ed.swarth...@nxp.com> Cc: Sriram Dash <sriram.d...@nxp.com> Fixes: 92623672f9d3 ("fsl: usb: make errata function common for PPC and ARM") --- 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 -- 2.7.4 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot