summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhui.song <hui.song_1@nxp.com>2020-05-20 18:40:18 +0800
committerPriyanka Jain <priyanka.jain@nxp.com>2020-07-27 14:16:26 +0530
commit08333fa50bf716d236aaa4c0ba17a8fa0c2524dc (patch)
tree2c872f871ac30a810ce4a87c65d96d67460a55f8
parente08bcc0e948de2a1ea73b9c58d642d08b1488ce0 (diff)
downloadu-boot-08333fa50bf716d236aaa4c0ba17a8fa0c2524dc.tar.gz
u-boot-08333fa50bf716d236aaa4c0ba17a8fa0c2524dc.tar.xz
u-boot-08333fa50bf716d236aaa4c0ba17a8fa0c2524dc.zip
armv8: gpio: add gpio feature
add one struct mpc8xxx_gpio_plat to enable gpio feature. Signed-off-by: hui.song <hui.song_1@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
-rw-r--r--arch/arm/include/asm/arch-fsl-layerscape/gpio.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-fsl-layerscape/gpio.h b/arch/arm/include/asm/arch-fsl-layerscape/gpio.h
new file mode 100644
index 0000000000..7ae5eee8b6
--- /dev/null
+++ b/arch/arm/include/asm/arch-fsl-layerscape/gpio.h
@@ -0,0 +1,22 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright 2020 NXP
+ */
+
+/*
+ * Dummy header file to enable CONFIG_OF_CONTROL.
+ * If CONFIG_OF_CONTROL is enabled, lib/fdtdec.c is compiled.
+ * It includes <asm/arch/gpio.h> via <asm/gpio.h>, so those SoCs that enable
+ * OF_CONTROL must have arch/gpio.h.
+ */
+
+#ifndef __ASM_ARCH_MX85XX_GPIO_H
+#define __ASM_ARCH_MX85XX_GPIO_H
+
+struct mpc8xxx_gpio_plat {
+ ulong addr;
+ ulong size;
+ uint ngpios;
+};
+
+#endif