diff mbox

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

Message ID 1467847081-26213-1-git-send-email-york.sun@nxp.com
State Superseded
Delegated to: Marek Vasut
Headers show

Commit Message

York Sun July 6, 2016, 11:18 p.m. UTC
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@nxp.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Ed Swarthout <Ed.Swarthout@nxp.com>
Cc: Sriram Dash <sriram.dash@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 mbox

Patch

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