diff mbox series

[U-Boot] armv8: fsl: Use correct conditional compile for ls1012a

Message ID 20170828024033.11683-1-ran.wang_1@nxp.com
State Accepted
Commit 5436c6a347918bf278d4cc9e5678f9bd94bdbcbc
Delegated to: York Sun
Headers show
Series [U-Boot] armv8: fsl: Use correct conditional compile for ls1012a | expand

Commit Message

Ran Wang Aug. 28, 2017, 2:40 a.m. UTC
According current code base, CONFIG_LS1012A should be
CONFIG_ARCH_LS1012A, or function fsl_fdt_disable(blob) will be
wrongly called to disable all dwc3 USB nodes on LS1012A, which
cause Linux USB function stop working at all.

Signed-off-by: Ran Wang <ran.wang_1@nxp.com>
---
 arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

York Sun Sept. 13, 2017, 2:24 a.m. UTC | #1
On 08/27/2017 07:57 PM, Ran Wang wrote:
> According current code base, CONFIG_LS1012A should be
> CONFIG_ARCH_LS1012A, or function fsl_fdt_disable(blob) will be
> wrongly called to disable all dwc3 USB nodes on LS1012A, which
> cause Linux USB function stop working at all.
> 
> Signed-off-by: Ran Wang <ran.wang_1@nxp.com>
> ---

Applied to fsl-qoriq master. Thanks.

York
diff mbox series

Patch

diff --git a/arch/arm/cpu/armv8/fsl-layerscape/fdt.c b/arch/arm/cpu/armv8/fsl-layerscape/fdt.c
index f5f4840f19..09b2cb1002 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/fdt.c
+++ b/arch/arm/cpu/armv8/fsl-layerscape/fdt.c
@@ -387,7 +387,7 @@  void ft_cpu_setup(void *blob, bd_t *bd)
 #ifdef CONFIG_SYS_DPAA_FMAN
 	fdt_fixup_fman_firmware(blob);
 #endif
-#ifndef CONFIG_LS1012A
+#ifndef CONFIG_ARCH_LS1012A
 	fsl_fdt_disable_usb(blob);
 #endif
 #ifdef CONFIG_HAS_FEATURE_GIC64K_ALIGN