[U-Boot] [PATCH 16/42] gpio: do not include <asm/arch/gpio.h> for ARCH_LS1043A

Biwen Li biwen.li at nxp.com
Thu Nov 14 10:36:15 UTC 2019


As no gpio.h is defined for this architecture, to
avoid compilation failure, do not include <asm/arch/gpio.h> for
SoC LS1043A. Compilation error as follows:
	- In file included from drivers/gpio/gpio-uclass.c:15:0:
	  ./arch/arm/include/asm/gpio.h:8:10: fatal error: asm/arch/gpio.h: No such file or directory
	  #include <asm/arch/gpio.h>
		  ^~~~~~~~~~~~~~~~~
	  In file included from drivers/i2c/i2c-uclass.c:15:0:
	  ./arch/arm/include/asm/gpio.h:8:10: fatal error: asm/arch/gpio.h: No such file or directory
	  #include <asm/arch/gpio.h>
		  ^~~~~~~~~~~~~~~~~
	  compilation terminated.

Signed-off-by: Biwen Li <biwen.li at nxp.com>
---
 arch/arm/include/asm/gpio.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/include/asm/gpio.h b/arch/arm/include/asm/gpio.h
index 9f8c9da564..45cb04801c 100644
--- a/arch/arm/include/asm/gpio.h
+++ b/arch/arm/include/asm/gpio.h
@@ -3,7 +3,7 @@
 	!defined(CONFIG_ARCH_BCM63158) && !defined(CONFIG_ARCH_ROCKCHIP) && \
 	!defined(CONFIG_ARCH_LX2160A) && !defined(CONFIG_ARCH_LS1028A) && \
 	!defined(CONFIG_ARCH_LS2080A) && !defined(CONFIG_ARCH_LS1088A) && \
-	!defined(CONFIG_ARCH_LS1012A) && \
+	!defined(CONFIG_ARCH_LS1012A) && !defined(CONFIG_ARCH_LS1043A) && \
 	!defined(CONFIG_ARCH_ASPEED)
 #include <asm/arch/gpio.h>
 #endif
-- 
2.17.1



More information about the U-Boot mailing list