[U-Boot] [PATCH 06/42] gpio: do not include <asm/arch/gpio.h> for ARCH_LS1012A
Biwen Li
biwen.li at nxp.com
Thu Nov 14 10:36:05 UTC 2019
As no gpio.h is defined for this architecture, to
avoid compilation failure, do not include <asm/arch/gpio.h> for
SoC LS1012A. Compilation error as follows:
- In file included from drivers/gpio/gpio-uclass.c:15:0:
./arch/arm/include/asm/gpio.h:7:10: fatal error: asm/arch/gpio.h: No such file or directory
#include <asm/arch/gpio.h>
^~~~~~~~~~~~~~~~~
compilation terminated.
scripts/Makefile.build:278: recipe for target drivers/gpio/gpio-uclass.o failed
make[1]: *** [drivers/gpio/gpio-uclass.o] Error 1
Makefile:1629: recipe for target drivers/gpio failed
make: *** [drivers/gpio] Error 2
make: *** Waiting for unfinished jobs....
LD board/freescale/common/built-in.o
In file included from drivers/i2c/i2c-uclass.c:15:0:
./arch/arm/include/asm/gpio.h:7: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 | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/include/asm/gpio.h b/arch/arm/include/asm/gpio.h
index 6ff5f42424..9f8c9da564 100644
--- a/arch/arm/include/asm/gpio.h
+++ b/arch/arm/include/asm/gpio.h
@@ -3,6 +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_ASPEED)
#include <asm/arch/gpio.h>
#endif
--
2.17.1
More information about the U-Boot
mailing list