]> git.baikalelectronics.ru Git - uboot.git/commit
gpio: stm32: create include file for driver private data
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Fri, 22 Oct 2021 18:12:34 +0000 (20:12 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Wed, 10 Nov 2021 16:03:36 +0000 (17:03 +0100)
commitdaf617aa35955e5f42ff2af78c549a0463ef8e45
tree73c59177d64e34e7b836124b917a8c5865818844
parent8ea4f6d7b1c1307766324a0b7a18a61e9e334513
gpio: stm32: create include file for driver private data

The stm32 gpio driver private data are not needed in arch include files,
they are not used by code except for stm32 gpio and pincontrol drivers,
using the same IP; the defines for this IP is moved in a new file
"stm32_gpio_priv.h" in driver/gpio.

This patch avoids to have duplicated file gpio.h for each SOC
in MPU directory mach-stm32mp and in each MCU directory arch-stm32*
and allows to remove CONFIG_GPIO_EXTRA_HEADER for all STM32.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
13 files changed:
arch/arm/Kconfig
arch/arm/include/asm/arch-stm32/gpio.h [deleted file]
arch/arm/include/asm/arch-stm32f4/gpio.h [deleted file]
arch/arm/include/asm/arch-stm32f7/gpio.h [deleted file]
arch/arm/include/asm/arch-stm32h7/gpio.h [deleted file]
arch/arm/mach-stm32mp/include/mach/gpio.h [deleted file]
board/st/stm32f746-disco/stm32f746-disco.c
drivers/gpio/stm32_gpio.c
drivers/gpio/stm32_gpio_priv.h [new file with mode: 0644]
drivers/pinctrl/pinctrl_stm32.c
drivers/video/dw_mipi_dsi.c
drivers/video/stm32/stm32_dsi.c
drivers/video/stm32/stm32_ltdc.c