mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-07-06 03:06:16 +09:00
8f651ca60b
Add get_pins_count ops to obtain the number of pins owns by a pin-controller. On STM32 SoCs bindings, each pin-controller owns several gpio banks. Each GPIO bank can own up to 16 pins. To obtain the total pins count, walk through each sub-nodes (ie GPIO banks) and sum each GPIO banks pins number. For that in probe() we build a list with each GPIO device reference found. This list will also be used with future get_pin_muxing and get_pin_name ops to speed up and optimize walk through all GPIO banks. As this code is common to all STM32 SoCs, this code is put under SPL_BUILD compilation flag to avoid to increase SPL code size for STM32F7 which is limited to 32Ko. Signed-off-by: Patrice Chotard <patrice.chotard@st.com> Reviewed-by: Simon Glass <sjg@chromium.org> |
||
---|---|---|
.. | ||
aspeed | ||
ath79 | ||
broadcom | ||
exynos | ||
meson | ||
mvebu | ||
nxp | ||
renesas | ||
rockchip | ||
uniphier | ||
Kconfig | ||
Makefile | ||
pinctrl_pic32.c | ||
pinctrl_stm32.c | ||
pinctrl-at91-pio4.c | ||
pinctrl-at91.c | ||
pinctrl-generic.c | ||
pinctrl-sandbox.c | ||
pinctrl-single.c | ||
pinctrl-sti.c | ||
pinctrl-uclass.c |