summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Fiore <mfiore@multitech.com>2013-04-24 15:40:25 -0500
committerMike Fiore <mfiore@multitech.com>2013-04-24 15:40:25 -0500
commit4a2ed127cff2a865d493c1a5e38fcef7cd0b454c (patch)
tree6b086259f236bbfdbf5734959c32b5c8b9396c54
parent00c38bd045e51fdecdf310c1de1462e6c5a9d182 (diff)
mts-io: 0.6.2 recipe and pcie-dk patch
-rw-r--r--multitech/recipes/multitech/mts-io/mts-io-0.6.2-pcieh5.patch85
-rw-r--r--multitech/recipes/multitech/mts-io_0.6.2.bb14
2 files changed, 99 insertions, 0 deletions
diff --git a/multitech/recipes/multitech/mts-io/mts-io-0.6.2-pcieh5.patch b/multitech/recipes/multitech/mts-io/mts-io-0.6.2-pcieh5.patch
new file mode 100644
index 0000000..c493572
--- /dev/null
+++ b/multitech/recipes/multitech/mts-io/mts-io-0.6.2-pcieh5.patch
@@ -0,0 +1,85 @@
+--- a/mts_io.c 2013-04-24 12:03:22.000000000 -0500
++++ b/mts_io.c 2013-04-24 13:54:20.550240011 -0500
+@@ -349,21 +349,23 @@
+ .use_pullup = 0,
+ .active_low = 1,
+ },
++ // MTPCIE-H5: Wifi and BT enable pins
++ // (was TXD1 and DTR1) (PB17 and PB7 are tied together)
+ {
+- .name = "TXD1",
+- .pin = AT91_PIN_PB17,
+- .direction = GPIO_DIR_INPUT,
++ .name = "WLAN_EN",
++ .attr_name = "wlan-enabled",
++ .pin = AT91_PIN_PB7,
++ .direction = GPIO_DIR_OUTPUT,
+ .output_value = 0,
+ .use_pullup = 0,
+ },
+ {
+- .name = "DTR1",
+- .attr_name = "extserial-dtr",
++ .name = "BT_EN",
++ .attr_name = "bt-enabled",
+ .pin = AT91_PIN_PB18,
+- .direction = GPIO_DIR_INPUT,
++ .direction = GPIO_DIR_OUTPUT,
+ .output_value = 0,
+ .use_pullup = 0,
+- .active_low = 1,
+ },
+ {
+ .name = "DCD1",
+@@ -374,6 +376,8 @@
+ .use_pullup = 0,
+ .active_low = 1,
+ },
++ // PCIE-H5 GPIO11 used for WLAN_IRQ
++#if 0
+ {
+ .name = "GPIO11",
+ .attr_name = "gpio11",
+@@ -382,6 +386,7 @@
+ .output_value = 1,
+ .use_pullup = 1,
+ },
++#endif
+ {
+ .name = "GPIO12",
+ .attr_name = "gpio12",
+@@ -1971,13 +1976,14 @@
+ &dev_attr_hw_version.attr,
+ &dev_attr_imei.attr,
+ &dev_attr_eth_mac.attr,
+- &dev_attr_extserial_dtr.attr,
++ &dev_attr_wifi_mac.attr,
+ &dev_attr_extserial_dcd_gpio.attr,
+ &dev_attr_rsersrc.attr,
+ &dev_attr_radio_reset.attr,
+ &dev_attr_eth0_enabled.attr,
+- &dev_attr_gpio11.attr,
+ &dev_attr_gpio12.attr,
++ &dev_attr_bt_enabled.attr,
++ &dev_attr_wlan_enabled.attr,
+
+ &dev_attr_gpo1.attr,
+ &dev_attr_gpo2.attr,
+@@ -2221,7 +2227,7 @@
+ return tmp;
+ }
+
+- spi_dout_value = 0x00;
++ spi_dout_value = 0xFF; // 0x00
+ spi_writen(spi, &spi_dout_value, 1);
+
+ spi_dout_dev = spi;
+@@ -2354,6 +2360,8 @@
+ mts_product_id = MTCDP_E1_DK_0_0;
+ log_info("detected board %s", HW_VERSION_MTCDP_0_0);
+ } else if (strncmp(id_eeprom.product_id, PRODUCT_ID_MT100EOCG, strlen(PRODUCT_ID_MT100EOCG)) == 0) {
++ DEVICE_CAPA_SET(id_eeprom.capa, CAPA_WIFI);
++ DEVICE_CAPA_SET(id_eeprom.capa, CAPA_BLUETOOTH);
+ attr_group = &mt100eocg_platform_attribute_group;
+ gpio_pins = gpio_pins_mt100eocg_0_0;
+ mts_product_id = MT100EOCG_0_0;
diff --git a/multitech/recipes/multitech/mts-io_0.6.2.bb b/multitech/recipes/multitech/mts-io_0.6.2.bb
new file mode 100644
index 0000000..3ed8918
--- /dev/null
+++ b/multitech/recipes/multitech/mts-io_0.6.2.bb
@@ -0,0 +1,14 @@
+require mts-io.inc
+
+TAG="v0.6.2"
+
+SRC_URI = " \
+ file://mts-io.init \
+ file://radio-reset-h5 \
+ git://git.multitech.net/cdp-io-controller.git;protocol=git;branch=master;tag=${TAG} \
+"
+
+SRC_URI_append_mt100eocg-pcie-dk = "file://mts-io-0.6.2-pcieh5.patch"
+
+LOCAL_PR = "${INC_PR}.1"
+MACHINE_KERNEL_PR_append = "${LOCAL_PR}"