diff mbox series

[U-Boot,06/42] gpio: do not include <asm/arch/gpio.h> for ARCH_LS1012A

Message ID 20191114103641.34085-6-biwen.li@nxp.com
State Changes Requested
Delegated to: Priyanka Jain
Headers show
Series [U-Boot,01/42] configs: ls1012a: enable CONFIG_DM_I2C | expand

Commit Message

Biwen Li Nov. 14, 2019, 10:36 a.m. UTC
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@nxp.com>
---
 arch/arm/include/asm/gpio.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Priyanka Jain Nov. 15, 2019, 12:43 p.m. UTC | #1
>-----Original Message-----
>From: Biwen Li <biwen.li@nxp.com>
>Sent: Thursday, November 14, 2019 4:06 PM
>To: Jagdish Gediya <jagdish.gediya@nxp.com>; Priyanka Jain
><priyanka.jain@nxp.com>; hs@denx.de; jagan@amarulasolutions.com;
>aford173@gmail.com; Alison Wang <alison.wang@nxp.com>;
>bhaskar.upadhaya@nxp.com; feng.li_2@nxp.com; jh80.chung@samsung.com;
>Pramod Kumar <pramod.kumar_1@nxp.com>; Rajesh Bhagat
><rajesh.bhagat@nxp.com>; Ruchika Gupta <ruchika.gupta@nxp.com>;
>olteanv@gmail.com
>Cc: Xiaobo Xie <xiaobo.xie@nxp.com>; Jiafei Pan <jiafei.pan@nxp.com>; u-
>boot@lists.denx.de; Biwen Li <biwen.li@nxp.com>
>Subject: [PATCH 06/42] gpio: do not include <asm/arch/gpio.h> for
>ARCH_LS1012A
>
>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.
>
If this compilation error is introduced by one of your patch, merge with that.
>Signed-off-by: Biwen Li <biwen.li@nxp.com>
>---
<snip>

-priyankajain
diff mbox series

Patch

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