summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2021-10-29 05:10:52 -0500
committerAndrii Pientsov <andrii.pientsov@globallogic.com>2021-11-18 14:18:49 +0200
commite5360bf650bae2e2c224d3f7ceced4f6a0aa7b95 (patch)
treecaa629c4808637194d77b062ce165c0c006aad3d
parent5d31246701422d2bc314f0542d9392e48f9af75d (diff)
downloadmeta-multitech-e5360bf650bae2e2c224d3f7ceced4f6a0aa7b95.tar.gz
meta-multitech-e5360bf650bae2e2c224d3f7ceced4f6a0aa7b95.tar.bz2
meta-multitech-e5360bf650bae2e2c224d3f7ceced4f6a0aa7b95.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 4d7da97..a0679b5 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"
@@ -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