From: Patrice Chotard Date: Thu, 31 May 2018 07:00:43 +0000 (+0200) Subject: mach-stm32: Enable SPL_RESET_SUPPORT flag X-Git-Tag: v2018.07-rc2~87 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6b6255cd8a7752b95ec6ea3d76d446c5b42cf64d;p=u-boot mach-stm32: Enable SPL_RESET_SUPPORT flag Since commit 0e373c0ade8c ("spl: add SPL_RESET_SUPPORT"), reset is supported in SPL, enable this flag for STM32F SoCs family. This allows to remove a specific case in RCC mfd driver. Signed-off-by: Patrice Chotard --- diff --git a/arch/arm/mach-stm32/Kconfig b/arch/arm/mach-stm32/Kconfig index 13532843fb..759f545176 100644 --- a/arch/arm/mach-stm32/Kconfig +++ b/arch/arm/mach-stm32/Kconfig @@ -48,6 +48,7 @@ config STM32F7 imply SPL_OS_BOOT select SPL_PINCTRL select SPL_RAM + select SPL_RESET_SUPPORT select SPL_SERIAL_SUPPORT select SPL_SYS_MALLOC_SIMPLE select SPL_TIMER diff --git a/drivers/misc/stm32_rcc.c b/drivers/misc/stm32_rcc.c index dee82c0b7b..980b3a58e1 100644 --- a/drivers/misc/stm32_rcc.c +++ b/drivers/misc/stm32_rcc.c @@ -53,13 +53,9 @@ static int stm32_rcc_bind(struct udevice *dev) if (ret) return ret; -#ifdef CONFIG_SPL_BUILD - return 0; -#else return device_bind_driver_to_node(dev, "stm32_rcc_reset", "stm32_rcc_reset", dev_ofnode(dev), &child); -#endif } static const struct misc_ops stm32_rcc_ops = {