summaryrefslogtreecommitdiff
path: root/include/configs/ls1012a_common.h
diff options
context:
space:
mode:
authorBiwen Li <biwen.li@nxp.com>2021-02-05 14:01:55 +0300
committerPriyanka Jain <priyanka.jain@nxp.com>2021-02-08 11:31:20 +0300
commitc5d0bd5dc8e68f45ed9711e43c590f072c33a783 (patch)
treec88f353fc79fc831ddb59b4b7e126af5abcd2a90 /include/configs/ls1012a_common.h
parenteeeab2750e95563aebf4baab53e481250711c104 (diff)
downloadu-boot-c5d0bd5dc8e68f45ed9711e43c590f072c33a783.tar.xz
configs: ls1012a: enable CONFIG_MPC8XXX_GPIO
Enable CONFIG_MPC8XXX_GPIO for SoC LS1012A Signed-off-by: Biwen Li <biwen.li@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'include/configs/ls1012a_common.h')
-rw-r--r--include/configs/ls1012a_common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/configs/ls1012a_common.h b/include/configs/ls1012a_common.h
index 6cf6a31d76..f6b5d47c25 100644
--- a/include/configs/ls1012a_common.h
+++ b/include/configs/ls1012a_common.h
@@ -62,6 +62,13 @@
#define CONFIG_I2C_DEFAULT_BUS_NUMBER 0
#endif
+/* GPIO */
+#ifdef CONFIG_DM_GPIO
+#ifndef CONFIG_MPC8XXX_GPIO
+#define CONFIG_MPC8XXX_GPIO
+#endif
+#endif
+
#define CONFIG_SYS_NS16550_SERIAL
#define CONFIG_SYS_NS16550_REG_SIZE 1
#define CONFIG_SYS_NS16550_CLK (get_serial_clock())