diff options
| author | Ludovic Desroches <[email protected]> | 2018-04-23 10:59:49 +0300 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2018-05-08 09:07:35 -0400 |
| commit | cbccb33584c952853baf3522a3cf51660046c77d (patch) | |
| tree | 2933c67392cf884be78a2c644183f1fc3955cdea | |
| parent | 7c45862f22fd6275a48130197d315dcf8723cfb5 (diff) | |
gpio: atmel_pio4: add drive strength macros
Macros for drive strength configuration were missing.
Signed-off-by: Ludovic Desroches <[email protected]>
| -rw-r--r-- | arch/arm/mach-at91/include/mach/atmel_pio4.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/include/mach/atmel_pio4.h b/arch/arm/mach-at91/include/mach/atmel_pio4.h index 81e0e9f3322..b7d6f5a1029 100644 --- a/arch/arm/mach-at91/include/mach/atmel_pio4.h +++ b/arch/arm/mach-at91/include/mach/atmel_pio4.h @@ -47,6 +47,10 @@ struct atmel_pio4_port { #define ATMEL_PIO_IFSCEN_MASK BIT(13) #define ATMEL_PIO_OPD_MASK BIT(14) #define ATMEL_PIO_SCHMITT_MASK BIT(15) +#define ATMEL_PIO_DRVSTR_MASK GENMASK(17, 16) +#define ATMEL_PIO_DRVSTR_LO (1 << 16) +#define ATMEL_PIO_DRVSTR_ME (2 << 16) +#define ATMEL_PIO_DRVSTR_HI (3 << 16) #define ATMEL_PIO_CFGR_EVTSEL_MASK GENMASK(26, 24) #define ATMEL_PIO_CFGR_EVTSEL_FALLING (0 << 24) #define ATMEL_PIO_CFGR_EVTSEL_RISING (1 << 24) |
