summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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