[rtems commit] bsp/qoriq: Add GPIO register map

Sebastian Huber sebh at rtems.org
Tue Oct 11 08:42:50 UTC 2016


Module:    rtems
Branch:    master
Commit:    282de10828c9e9a765e8fe4434b7f545309e15c4
Changeset: http://git.rtems.org/rtems/commit/?id=282de10828c9e9a765e8fe4434b7f545309e15c4

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Oct 11 10:42:15 2016 +0200

bsp/qoriq: Add GPIO register map

---

 c/src/lib/libbsp/powerpc/qoriq/include/qoriq.h | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/c/src/lib/libbsp/powerpc/qoriq/include/qoriq.h b/c/src/lib/libbsp/powerpc/qoriq/include/qoriq.h
index 456a3b5..4b34fd6 100644
--- a/c/src/lib/libbsp/powerpc/qoriq/include/qoriq.h
+++ b/c/src/lib/libbsp/powerpc/qoriq/include/qoriq.h
@@ -173,6 +173,17 @@ typedef struct {
 } qoriq_uart;
 
 typedef struct {
+  uint32_t gpdir;
+  uint32_t gpodr;
+  uint32_t gpdat;
+  uint32_t gpier;
+  uint32_t gpimr;
+  uint32_t gpicr;
+  uint32_t gpibe;
+  QORIQ_RESERVE(0x001c, 0x1000);
+} qoriq_gpio;
+
+typedef struct {
   QORIQ_RESERVE(0x000, 0x100);
   uint16_t caplength;
   uint16_t hciversion;
@@ -311,7 +322,9 @@ typedef struct {
   QORIQ_FILL(0x11d500, 0x11d600, qoriq_uart);
   qoriq_uart uart_3;
   QORIQ_FILL(0x11d600, 0x11e000, qoriq_uart);
-  QORIQ_RESERVE(0x11e000, 0x210000);
+  QORIQ_RESERVE(0x11e000, 0x130000);
+  qoriq_gpio gpio[4];
+  QORIQ_RESERVE(0x134000, 0x210000);
   qoriq_usb usb_1;
   QORIQ_FILL(0x210000, 0x211000, qoriq_usb);
   QORIQ_RESERVE(0x211000, 0x318000);




More information about the vc mailing list