summaryrefslogtreecommitdiff
path: root/drivers/gpio/stm32_gpio.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-10-22 08:25:41 -0400
committerTom Rini <trini@konsulko.com>2020-10-22 08:25:41 -0400
commitb90daf2743b38022bea8727ede867ad63e971db2 (patch)
tree5ab97dff480f2cf32aa2cc1724d654ec60e6a73e /drivers/gpio/stm32_gpio.c
parent281d94b9867c69a6bbe1e6490f695def68b9fd0a (diff)
parent53de79fecc53338b544b4d2c2d88daba9d82b007 (diff)
Merge tag 'u-boot-stm32-20201021' of https://gitlab.denx.de/u-boot/custodians/u-boot-stm
- Activate CMD_EXPORTENV/CMD_IMPORTENV/CMD_ELF for STM32MP15 defconfig - Fix stm32prog command: parsing of FlashLayout without partition - Update MAINTAINERS for ARM STM STM32MP - Manage eth1addr on dh board with KS8851 - Limit size of cacheable DDR in pre-reloc stage in stm32mp1 - Use mmc_of_parse() to read host capabilities in mmc:sdmmc2 driver
Diffstat (limited to 'drivers/gpio/stm32_gpio.c')
-rw-r--r--drivers/gpio/stm32_gpio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpio/stm32_gpio.c b/drivers/gpio/stm32_gpio.c
index 473e364796f..b885cfb57e5 100644
--- a/drivers/gpio/stm32_gpio.c
+++ b/drivers/gpio/stm32_gpio.c
@@ -18,6 +18,8 @@
#include <linux/errno.h>
#include <linux/io.h>
+#define STM32_GPIOS_PER_BANK 16
+
#define MODE_BITS(gpio_pin) ((gpio_pin) * 2)
#define MODE_BITS_MASK 3
#define BSRR_BIT(gpio_pin, value) BIT((gpio_pin) + (value ? 0 : 16))