summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEvert Pap <evert.pap@sintecs.nl>2016-03-31 13:54:38 (GMT)
committerEvert Pap <evert.pap@sintecs.nl>2016-04-21 13:16:19 (GMT)
commit5c19689b5e1f02f85528e7258623cc17c191097b (patch)
tree9936037b908d73c0ab57d3256ab57d4c73374f22 /include
parent3c1d218a1d3048fb576677c47eab43049d0b7778 (diff)
downloadu-boot-fsl-qoriq-5c19689b5e1f02f85528e7258623cc17c191097b.tar.xz
dm: gpio: Add DM GPIO driver for MPC8xxx platforms
This driver adds DM GPIO support for the NXP QorIQ T10xx series. ported from the linux kernel 4.5 * (b562e44f507e863c6792946e4e1b1449fbbac85d) * and removed the interrupt functionallity. This driver could also support the older platforms, as well as the new LayerScape (ARM) based platforms, but these platforms are not supported at this time.
Diffstat (limited to 'include')
-rw-r--r--include/dm/platform_data/gpio_mpc8xxx.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/dm/platform_data/gpio_mpc8xxx.h b/include/dm/platform_data/gpio_mpc8xxx.h
new file mode 100644
index 0000000..37e5241
--- /dev/null
+++ b/include/dm/platform_data/gpio_mpc8xxx.h
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2016 Scalys B.V. <u-boot@scalys.com>
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#ifndef _MPC8XXX_GPIO_H
+#define _MPC8XXX_GPIO_H
+
+struct mpc8xxx_gpio_platdata {
+ const char *bank_name;
+ ccsr_gpio_t *regs;
+ int gpio_count;
+#if defined(CONFIG_MPC8572) || defined(CONFIG_MPC8536)
+ /* shadowed data register used to work around errata on
+ * MPC8572 and MPC8535 where it is not possible to read the
+ * state of an output pin */
+ uint32_t data;
+#endif
+};
+
+#endif