diff mbox series

[14/15] configs: lx2160a: enable CONFIG_MPC8XXX_GPIO

Message ID 20201016091210.6416-14-biwen.li@oss.nxp.com
State Changes Requested
Delegated to: Priyanka Jain
Headers show
Series [01/15] gpio: mpc8xxx_gpio: fix a bug on ls1046ardb | expand

Commit Message

Biwen Li Oct. 16, 2020, 9:12 a.m. UTC
From: Biwen Li <biwen.li@nxp.com>

Enable CONFIG_MPC8XXX_GPIO for SoC LX2160A

Signed-off-by: Biwen Li <biwen.li@nxp.com>
---
 include/configs/lx2160a_common.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

Comments

Priyanka Jain Dec. 7, 2020, 9:56 a.m. UTC | #1
>-----Original Message-----
>From: Biwen Li <biwen.li@oss.nxp.com>
>Sent: Friday, October 16, 2020 2:42 PM
>To: Priyanka Jain <priyanka.jain@nxp.com>
>Cc: Jiafei Pan <jiafei.pan@nxp.com>; u-boot@lists.denx.de; Xiaobo Xie
><xiaobo.xie@nxp.com>; Biwen Li <biwen.li@nxp.com>
>Subject: [PATCH 14/15] configs: lx2160a: enable CONFIG_MPC8XXX_GPIO
>
>From: Biwen Li <biwen.li@nxp.com>
>
>Enable CONFIG_MPC8XXX_GPIO for SoC LX2160A
>
>Signed-off-by: Biwen Li <biwen.li@nxp.com>
>---
> include/configs/lx2160a_common.h | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
>diff --git a/include/configs/lx2160a_common.h
>b/include/configs/lx2160a_common.h
>index 0017ac5773..fe79d91f33 100644
>--- a/include/configs/lx2160a_common.h
>+++ b/include/configs/lx2160a_common.h
>@@ -158,6 +158,16 @@
> #define NXP_FSPI_FLASH_NUM		1
> #endif
>
>+/* GPIO */
>+#ifdef CONFIG_DM_GPIO
>+#ifndef CONFIG_MPC8XXX_GPIO
>+#define CONFIG_MPC8XXX_GPIO
>+#endif
>+#ifndef CONFIG_CMD_GPIO
>+#define CONFIG_CMD_GPIO
>+#endif
>+#endif
>+
> #ifndef __ASSEMBLY__
> unsigned long get_board_sys_clk(void);
> unsigned long get_board_ddr_clk(void);
>--
>2.17.1
Kindly fix below checkpatch error: 

ERROR: All commands are managed by Kconfig
#27: FILE: include/configs/lx2160a_common.h:169:
+#define CONFIG_CMD_GPIO

total: 1 errors, 0 warnings, 0 checks, 16 lines checked

Regards
Priyanka
diff mbox series

Patch

diff --git a/include/configs/lx2160a_common.h b/include/configs/lx2160a_common.h
index 0017ac5773..fe79d91f33 100644
--- a/include/configs/lx2160a_common.h
+++ b/include/configs/lx2160a_common.h
@@ -158,6 +158,16 @@ 
 #define NXP_FSPI_FLASH_NUM		1
 #endif
 
+/* GPIO */
+#ifdef CONFIG_DM_GPIO
+#ifndef CONFIG_MPC8XXX_GPIO
+#define CONFIG_MPC8XXX_GPIO
+#endif
+#ifndef CONFIG_CMD_GPIO
+#define CONFIG_CMD_GPIO
+#endif
+#endif
+
 #ifndef __ASSEMBLY__
 unsigned long get_board_sys_clk(void);
 unsigned long get_board_ddr_clk(void);