Skip to content

Commit ac3269c

Browse files
committed
drivers: pinctrl: stm32: initial version
Add initial version for STM32 pinctrl driver. Driver has been written re-using many of the already existing parts in drivers/pinmux/pinmux_stm32.c. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent a2e619e commit ac3269c

File tree

5 files changed

+583
-0
lines changed

5 files changed

+583
-0
lines changed

drivers/pinctrl/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33

44
zephyr_library()
55
zephyr_library_sources(common.c)
6+
zephyr_library_sources_ifdef(CONFIG_PINCTRL_STM32 pinctrl_stm32.c)

drivers/pinctrl/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,6 @@ config PINCTRL_DYNAMIC
2929
runtime. This can be useful, for example, to change the pins assigned to a
3030
peripheral at early boot stages depending on a certain input.
3131

32+
source "drivers/pinctrl/Kconfig.stm32"
33+
3234
endif # PINCTRL

drivers/pinctrl/Kconfig.stm32

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright (c) 2021 Nordic Semiconductor ASA
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config PINCTRL_STM32
5+
bool "Pin controller driver for STM32 MCUs"
6+
depends on SOC_FAMILY_STM32
7+
select PINCTRL_STORE_REG if SOC_SERIES_STM32F1X
8+
default y
9+
help
10+
Enable pin controller driver for STM32 MCUs
11+
12+
config PINCTRL_STM32_REMAP_INIT_PRIORITY
13+
int "Remap initialization priority"
14+
default 2
15+
help
16+
Initialization priority for the routine in charge of configuring the
17+
remap for pins PA11/12.

0 commit comments

Comments
 (0)