diff options
author | John Klug <john.klug@multitech.com> | 2022-02-28 09:43:31 -0600 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2022-02-28 09:39:24 -0600 |
commit | 25340fdc5c8c191ae92039d46c40a2ec54b39dae (patch) | |
tree | 898b66dc78e878860195bf643ed49db98216c085 | |
parent | 47265d1046ff1c26d19e208c97e95a962161731a (diff) | |
download | mtac-eth-25340fdc5c8c191ae92039d46c40a2ec54b39dae.tar.gz mtac-eth-25340fdc5c8c191ae92039d46c40a2ec54b39dae.tar.bz2 mtac-eth-25340fdc5c8c191ae92039d46c40a2ec54b39dae.zip |
-rw-r--r-- | AUTHORS | 3 | ||||
-rw-r--r-- | mtac_eth.c | 28 |
2 files changed, 13 insertions, 18 deletions
@@ -1,2 +1 @@ -James Maki <jmaki@multitech.com> -John Klug <john.klug@multitech.com> +Multi-Tech <info@multitech.com> @@ -1,16 +1,9 @@ -#define DRIVER_VERSION "v1.1.1" +#define DRIVER_VERSION "v2.0.0" #define DRIVER_AUTHOR "Multi-Tech" #define DRIVER_DESC "MTS Ethernet Accessory Card" #define DRIVER_NAME "mtac-eth" #include <linux/types.h> -#include <linux/gpio.h> -#ifdef TI43X -#include <linux/ti43x_gpio.h> -#endif -#ifdef SAM9G25 -#include <linux/sam9g25_gpio.h> -#endif #include <linux/platform_device.h> #include <linux/kmod.h> #include <linux/bitops.h> @@ -18,27 +11,30 @@ #include <linux/slab.h> #include <linux/mtac.h> #include <linux/mts_io.h> +#include <linux/gpio/consumer.h> static struct gpio_pin gpio_pins_mtac_eth[] = { // gpio pins for Accessory Card 1 { - .name = "AP1_RESET", + .name = "AP1_NRESET", .pin = { - .gpio = M_AP1_NRESET, - .flags = GPIOF_OUT_INIT_HIGH, + .gpio = ~0U, + .flags = GPIOD_OUT_HIGH, .label = "ap1-reset", - } + }, + .do_gpio_desc = 1, }, // gpio pins for Accessory Card 2 { - .name = "AP2_RESET", + .name = "AP2_NRESET", .pin = { - .gpio = M_AP2_NRESET, - .flags = GPIOF_OUT_INIT_HIGH, + .gpio = ~0U, + .flags = GPIOD_OUT_HIGH, .label = "ap2-reset", - } + }, + .do_gpio_desc = 1, }, { }, }; |