* [U-Boot] [PATCH] mach-stm32: Enable SPL_RESET_SUPPORT flag
@ 2018-05-31 7:00 Patrice Chotard
2018-06-06 11:16 ` [U-Boot] " Tom Rini
0 siblings, 1 reply; 2+ messages in thread
From: Patrice Chotard @ 2018-05-31 7:00 UTC (permalink / raw)
To: u-boot
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 | 1 +
drivers/misc/stm32_rcc.c | 4 ----
2 files changed, 1 insertion(+), 4 deletions(-)
diff --git a/arch/arm/mach-stm32/Kconfig b/arch/arm/mach-stm32/Kconfig
index 13532843fbc8..759f54517662 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 dee82c0b7b1e..980b3a58e1d8 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 = {
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] mach-stm32: Enable SPL_RESET_SUPPORT flag
2018-05-31 7:00 [U-Boot] [PATCH] mach-stm32: Enable SPL_RESET_SUPPORT flag Patrice Chotard
@ 2018-06-06 11:16 ` Tom Rini
0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2018-06-06 11:16 UTC (permalink / raw)
To: u-boot
On Thu, May 31, 2018 at 09:00:43AM +0200, Patrice Chotard wrote:
> 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>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180606/fe99a683/attachment.sig>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-06-06 11:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-31 7:00 [U-Boot] [PATCH] mach-stm32: Enable SPL_RESET_SUPPORT flag Patrice Chotard
2018-06-06 11:16 ` [U-Boot] " Tom Rini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.