armv8: fsl: Use correct conditional compile for ls1012a
authorRan Wang <ran.wang_1@nxp.com>
Mon, 28 Aug 2017 02:40:33 +0000 (10:40 +0800)
committerYork Sun <york.sun@nxp.com>
Mon, 11 Sep 2017 15:00:13 +0000 (08:00 -0700)
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>
Reviewed-by: York Sun <york.sun@nxp.com>
arch/arm/cpu/armv8/fsl-layerscape/fdt.c

index c9252751dbcecca85384c18902c5b3e2e2b60439..cae59da803b56c39d701a03ae58be0cf06c5ee37 100644 (file)
@@ -418,7 +418,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