diff options
author | John Klug <john.klug@multitech.com> | 2020-10-02 12:58:37 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2020-10-02 12:58:37 -0500 |
commit | 61cbfaa050906f978151679f18a8effeedb22499 (patch) | |
tree | a605f8ce59a6cad5fb0a9ddd3ba72be1b6cf9c4b | |
parent | 23d586704d9906f67632c002db1ab932c0a18bdb (diff) | |
download | mtac-61cbfaa050906f978151679f18a8effeedb22499.tar.gz mtac-61cbfaa050906f978151679f18a8effeedb22499.tar.bz2 mtac-61cbfaa050906f978151679f18a8effeedb22499.zip |
Add MTAC Slot Pinout to mtac driver
-rw-r--r-- | machine/sam9g25_gpio.h | 21 | ||||
-rw-r--r-- | machine/ti43x_gpio.h | 22 |
2 files changed, 43 insertions, 0 deletions
diff --git a/machine/sam9g25_gpio.h b/machine/sam9g25_gpio.h new file mode 100644 index 0000000..4e0132e --- /dev/null +++ b/machine/sam9g25_gpio.h @@ -0,0 +1,21 @@ +#ifndef SAM9G25_MFSER_GPIO_H +#define SAM9G25_MFSER_GPIO_H + +#include <linux/at91gpio.h> + +// M_* for machine specific GPIO pin + +// gpio pins for Accessory Card 1 +#define M_AP1_GPIO1 AT91_PIN_PC6 +#define M_AP1_GPIO2 AT91_PIN_PC7 +#define M_AP1_GPIO3 AT91_PIN_PC8 +#define M_AP1_GPIO4 AT91_PIN_PC9 +#define M_AP1_NRESET AT91_PIN_PB12 + +// gpio pins for Accessory Card 2 +#define M_AP2_GPIO1 AT91_PIN_PC20 +#define M_AP2_GPIO2 AT91_PIN_PC21 +#define M_AP2_GPIO3 AT91_PIN_PC22 +#define M_AP2_GPIO4 AT91_PIN_PC23 +#define M_AP2_NRESET AT91_PIN_PB13 +#endif /* SAM9G25_MFSER_GPIO_H */
\ No newline at end of file diff --git a/machine/ti43x_gpio.h b/machine/ti43x_gpio.h new file mode 100644 index 0000000..842aea0 --- /dev/null +++ b/machine/ti43x_gpio.h @@ -0,0 +1,22 @@ +#ifndef TI43X_MFSER_GPIO_H +#define TI43X_MFSER_GPIO_H + +#define OMAP_GPIO(BANK, GPIO) ((BANK*32)+GPIO) + +// M_* for machine specific GPIO pin + +// gpio pins for Accessory Card 1 +#define M_AP1_GPIO1 OMAP_GPIO(1,0) +#define M_AP1_GPIO2 OMAP_GPIO(0,24) +#define M_AP1_GPIO3 OMAP_GPIO(0,23) +#define M_AP1_GPIO4 OMAP_GPIO(0,22) +#define M_AP1_NRESET OMAP_GPIO(1,1) + + +// gpio pins for Accessory Card 2 +#define M_AP2_GPIO1 OMAP_GPIO(3,19) +#define M_AP2_GPIO2 OMAP_GPIO(3,16) +#define M_AP2_GPIO3 OMAP_GPIO(3,20) +#define M_AP2_GPIO4 OMAP_GPIO(0,19) +#define M_AP2_NRESET OMAP_GPIO(5,29) +#endif /* SAM9G25_MFSER_GPIO_H */
\ No newline at end of file |