]> git.sur5r.net Git - u-boot/commitdiff
mach-stm32: Enable SPL_RESET_SUPPORT flag
authorPatrice Chotard <patrice.chotard@st.com>
Thu, 31 May 2018 07:00:43 +0000 (09:00 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 6 Jun 2018 00:19:09 +0000 (20:19 -0400)
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 <patrice.chotard@st.com>
arch/arm/mach-stm32/Kconfig
drivers/misc/stm32_rcc.c

index 13532843fbc84f38ad7b5dc2f312156e6d6f0efc..759f54517662e54dd126124575eb3b8678a7951e 100644 (file)
@@ -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
index dee82c0b7b1e1edf17f238a102dd52934ede49f6..980b3a58e1d855e755afba3df0bff34cee7b1a62 100644 (file)
@@ -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 = {