pinctrl: add driver for STM32 GPIO and pin multiplexer
This adds driver support for the 12 GPIO banks on the STM32MP157.
As they are accessible to both the Cortex-A cores as well as the Cortex-M
core, modifications to these are protected by a hardware spinlock
and clocks are enabled/disabled as required.

All register fiddling done by the driver is collected in <soc/stm32/gpio.h>,
so future PBL code may make use of it as well to chainload barebox proper.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 1b90b3f commit f4f933a64d20de0634f8b0a2bd44b0df04a3221f
@Ahmad Fatoum Ahmad Fatoum authored on 17 Jun 2019
Sascha Hauer committed on 20 Jun 2019
Showing 6 changed files
View
arch/arm/Kconfig
View
arch/arm/dts/stm32mp157c.dtsi
View
drivers/pinctrl/Kconfig
View
drivers/pinctrl/Makefile
View
drivers/pinctrl/pinctrl-stm32.c 0 → 100644
View
include/soc/stm32/gpio.h 0 → 100644