summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2021-10-29 05:10:52 -0500
committerJohn Klug <john.klug@multitech.com>2021-12-29 08:05:37 -0600
commit5d3a495616ac5b0d286250f871003a640a8c6452 (patch)
treed9340410cafa6ca40132030d60307d52b5937e5d
parent2bdd27fa08812c6c622474b5b7827971607bfe82 (diff)
downloadmeta-multitech-5d3a495616ac5b0d286250f871003a640a8c6452.tar.gz
meta-multitech-5d3a495616ac5b0d286250f871003a640a8c6452.tar.bz2
meta-multitech-5d3a495616ac5b0d286250f871003a640a8c6452.zip
Add the names of the GPIOs for the MTCDT-0.2 IO expander
-rw-r--r--recipes-bsp/multitech/mts-io.inc3
-rw-r--r--recipes-bsp/multitech/mts-io/ioport-gpio-expand.patch28
2 files changed, 30 insertions, 1 deletions
diff --git a/recipes-bsp/multitech/mts-io.inc b/recipes-bsp/multitech/mts-io.inc
index 93c99a6..d723ca6 100644
--- a/recipes-bsp/multitech/mts-io.inc
+++ b/recipes-bsp/multitech/mts-io.inc
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://io-module/COPYING;md5=94d55d512a9ba36caa9b7df079bae19
file://io-tool/COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
"
do_fetch[depends] += "virtual/kernel:do_shared_workdir"
-INC_PR = "r4"
+INC_PR = "r5"
SRCREV = "${PV}"
PR = "${INC_PR}.0-${KERNEL_MODULE_PACKAGE_SUFFIX}"
@@ -27,6 +27,7 @@ SRC_URI = " \
file://mts-io.mtcap.init \
file://mts-io.conf \
file://MTCDT-0.2.patch \
+ file://ioport-gpio-expand.patch \
"
S = "${WORKDIR}/git"
diff --git a/recipes-bsp/multitech/mts-io/ioport-gpio-expand.patch b/recipes-bsp/multitech/mts-io/ioport-gpio-expand.patch
new file mode 100644
index 0000000..c413d21
--- /dev/null
+++ b/recipes-bsp/multitech/mts-io/ioport-gpio-expand.patch
@@ -0,0 +1,28 @@
+diff --git a/io-module/at91gpio.h b/io-module/at91gpio.h
+index c2f8a77..d6328f1 100644
+--- a/io-module/at91gpio.h
++++ b/io-module/at91gpio.h
+@@ -179,4 +179,23 @@
+ #define AT91_PIN_PE30 (0x80 + 30)
+ #define AT91_PIN_PE31 (0x80 + 31)
+
++// MTCDT-0.2 I2C I/O Port expanders
++#define PCA9557_0_IO0 (0xa0 + 0)
++#define PCA9557_0_IO1 (0xa0 + 1)
++#define PCA9557_0_IO2 (0xa0 + 2)
++#define PCA9557_0_IO3 (0xa0 + 3)
++#define PCA9557_0_IO4 (0xa0 + 4)
++#define PCA9557_0_IO5 (0xa0 + 5)
++#define PCA9557_0_IO6 (0xa0 + 6)
++#define PCA9557_0_IO7 (0xa0 + 7)
++
++#define PCA9557_1_IO0 (0xa8 + 0)
++#define PCA9557_1_IO1 (0xa8 + 1)
++#define PCA9557_1_IO2 (0xa8 + 2)
++#define PCA9557_1_IO3 (0xa8 + 3)
++#define PCA9557_1_IO4 (0xa8 + 4)
++#define PCA9557_1_IO5 (0xa8 + 5)
++#define PCA9557_1_IO6 (0xa8 + 6)
++#define PCA9557_1_IO7 (0xa8 + 7)
++
+ #endif