summaryrefslogtreecommitdiff
path: root/io-module/mtcdt.c
diff options
context:
space:
mode:
Diffstat (limited to 'io-module/mtcdt.c')
-rw-r--r--io-module/mtcdt.c265
1 files changed, 1 insertions, 264 deletions
diff --git a/io-module/mtcdt.c b/io-module/mtcdt.c
index 0fca7aa..cb46a0d 100644
--- a/io-module/mtcdt.c
+++ b/io-module/mtcdt.c
@@ -1,6 +1,6 @@
/*
* Within a struct gpio_pin, there is only one
- * occurance of each pin, so there is only one
+ * occurrence of each pin, so there is only one
* pin label set for each gpio pin.
*/
static struct gpio_pin gpio_pins_mtcdt_0_0[] = {
@@ -131,142 +131,6 @@ static struct gpio_pin gpio_pins_mtcdt_0_0[] = {
},
.active_low = 1,
},
-
- // gpio pins for Accessory Card 1
- {
- .name = "AP1_RESET",
- .pin = {
- .gpio = AT91_PIN_PB12,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "ap1-reset",
- }
- },
- {
- .name = "AP1_GPIO1",
- .pin = {
- .gpio = AT91_PIN_PC6,
- .flags = GPIOF_OUT_INIT_LOW,
- .label = "ap1-gpio1",
- },
- .active_low = 1,
- },
- {
- .name = "AP1_GPIO2",
- .pin = {
- .gpio = AT91_PIN_PC7,
- .flags = GPIOF_OUT_INIT_LOW,
- .label = "ap1-gpio2",
- }
- },
- {
- .name = "AP1_GPIO3",
- .pin = {
- .gpio = AT91_PIN_PC8,
- .flags = GPIOF_OUT_INIT_LOW,
- .label = "ap1-gpio3",
- }
- },
- {
- .name = "AP1_GPIO4",
- .pin = {
- .gpio = AT91_PIN_PC9,
- .flags = GPIOF_OUT_INIT_LOW,
- .label = "ap1-gpio4",
- }
- },
- {
- .name = "AP1_INTERRUPT1",
- .pin = {
- .gpio = AT91_PIN_PB14,
- .flags = GPIOF_IN,
- .label = "ap1-interrupt1",
- }
- },
- {
- .name = "AP1_INTERRUPT2",
- .pin = {
- .gpio = AT91_PIN_PB15,
- .flags = GPIOF_IN,
- .label = "ap1-interrupt2",
- }
- },
- {
- .name = "AP1_GPS_PPS",
- .pin = {
- .gpio = AT91_PIN_PA29,
- .flags = GPIOF_IN,
- .label = "ap1-gps-pps",
- }
- },
-
- // gpio pins for Accessory Card 2
- {
- .name = "AP2_RESET",
- .pin = {
- .gpio = AT91_PIN_PB13,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "ap2-reset",
- }
- },
- {
- .name = "AP2_GPIO1",
- .pin = {
- .gpio = AT91_PIN_PC20,
- .flags = GPIOF_OUT_INIT_LOW,
- .label = "ap2-gpio1",
- },
- .active_low = 1,
- },
- {
- .name = "AP2_GPIO2",
- .pin = {
- .gpio = AT91_PIN_PC21,
- .flags = GPIOF_OUT_INIT_LOW,
- .label = "ap2-gpio2",
- }
- },
- {
- .name = "AP2_GPIO3",
- .pin = {
- .gpio = AT91_PIN_PC22,
- .flags = GPIOF_OUT_INIT_LOW,
- .label = "ap2-gpio3",
- }
- },
- {
- .name = "AP2_GPIO4",
- .pin = {
- .gpio = AT91_PIN_PC23,
- .flags = GPIOF_OUT_INIT_LOW,
- .label = "ap2-gpio4",
- }
- },
- {
- .name = "AP2_INTERRUPT1",
- .pin = {
- .gpio = AT91_PIN_PB17,
- .flags = GPIOF_IN,
- .label = "ap2-interrupt1",
- }
- },
- {
- .name = "AP2_INTERRUPT2",
- .pin = {
- .gpio = AT91_PIN_PB18,
- .flags = GPIOF_IN,
- .label = "ap2-interrupt2",
- }
- },
- {
- .name = "AP2_GPS_PPS",
- .pin = {
- .gpio = AT91_PIN_PA6,
- .flags = GPIOF_IN,
- .label = "ap2-gps-pps",
- }
- },
-
- { },
};
static struct gpio_pin gpio_pins_mtcdt_0_1[] = {
@@ -389,133 +253,6 @@ static struct gpio_pin gpio_pins_mtcdt_0_1[] = {
},
.active_low = 1,
},
-
- // gpio pins for Accessory Card 1
- {
- .name = "AP1_RESET",
- .pin = {
- .gpio = AT91_PIN_PB12,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "ap1-reset",
- }
- },
- {
- .name = "AP1_GPIO1",
- .pin = {
- .gpio = AT91_PIN_PC6,
- .flags = GPIOF_OUT_INIT_LOW,
- .label = "ap1-gpio1",
- },
- .active_low = 1,
- },
- {
- .name = "AP1_GPIO2",
- .pin = {
- .gpio = AT91_PIN_PC7,
- .flags = GPIOF_OUT_INIT_LOW,
- .label = "ap1-gpio2",
- }
- },
- {
- .name = "AP1_GPIO3",
- .pin = {
- .gpio = AT91_PIN_PC8,
- .flags = GPIOF_OUT_INIT_LOW,
- .label = "ap1-gpio3",
- }
- },
- {
- .name = "AP1_GPIO4",
- .pin = {
- .gpio = AT91_PIN_PC9,
- .flags = GPIOF_OUT_INIT_LOW,
- .label = "ap1-gpio4",
- }
- },
- {
- .name = "AP1_INTERRUPT1",
- .pin = {
- .gpio = AT91_PIN_PB14,
- .flags = GPIOF_IN,
- .label = "ap1-interrupt1",
- }
- },
- {
- .name = "AP1_INTERRUPT2",
- .pin = {
- .gpio = AT91_PIN_PB15,
- .flags = GPIOF_IN,
- .label = "ap1-interrupt2",
- }
- },
-
- // gpio pin for Accessory Card 2
- {
- .name = "AP2_RESET",
- .pin = {
- .gpio = AT91_PIN_PB13,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "ap2-reset",
- }
- },
- {
- .name = "ETH_RESET",
- .pin = {
- .gpio = AT91_PIN_PC4,
- .flags = GPIOF_OUT_INIT_HIGH,
- .label = "eth-reset",
- }
- },
- // gpio pin for Accessory Card 2
- {
- .name = "AP2_GPIO1",
- .pin = {
- .gpio = AT91_PIN_PC20,
- .flags = GPIOF_OUT_INIT_LOW,
- .label = "ap2-gpio1",
- },
- .active_low = 1,
- },
- {
- .name = "AP2_GPIO2",
- .pin = {
- .gpio = AT91_PIN_PC21,
- .flags = GPIOF_OUT_INIT_LOW,
- .label = "ap2-gpio2",
- }
- },
- {
- .name = "AP2_GPIO3",
- .pin = {
- .gpio = AT91_PIN_PC22,
- .flags = GPIOF_OUT_INIT_LOW,
- .label = "ap2-gpio3",
- }
- },
- {
- .name = "AP2_GPIO4",
- .pin = {
- .gpio = AT91_PIN_PC23,
- .flags = GPIOF_OUT_INIT_LOW,
- .label = "ap2-gpio4",
- }
- },
- {
- .name = "AP2_INTERRUPT1",
- .pin = {
- .gpio = AT91_PIN_PB17,
- .flags = GPIOF_IN,
- .label = "ap2-interrupt1",
- }
- },
- {
- .name = "AP2_INTERRUPT2",
- .pin = {
- .gpio = AT91_PIN_PB18,
- .flags = GPIOF_IN,
- .label = "ap2-interrupt2",
- }
- },
{
.name = "WIFI_BT_ULPWKUP",
.pin = {