* [U-Boot] [PATCH v6 0/5] drivers: Add reset ctrl to drivers
@ 2018-06-14 10:45 Ley Foon Tan
2018-06-14 10:45 ` [U-Boot] [PATCH v6 1/5] reset: Rename CONFIG_SPL_RESET_SUPPORT to CONFIG_SPL_DM_RESET Ley Foon Tan
` (5 more replies)
0 siblings, 6 replies; 15+ messages in thread
From: Ley Foon Tan @ 2018-06-14 10:45 UTC (permalink / raw)
To: u-boot
Add reset ctrl to dwmmc socfpga, designware Ethernet and ns16550 serial drivers.
A reset property is an optional feature, so only print out a warning and
do not fail if a reset property is not present.
If a reset property is discovered, then use it to deassert, thus bringing the
IP out of reset.
v6:
- Include change history to patches and cover letter
- Added Joe's Acked-by in designware emac patch.
v5: https://patchwork.ozlabs.org/cover/924857/
- Rename CONFIG_SPL_RESET_SUPPORT to CONFIG_SPL_DM_RESET
- Change to use CONFIG_IS_ENABLED(DM_RESET) in reset.h
- Added Simon's Reviewed-by in dwmmc, 16550 serial and designware emac patches.
v4: https://patchwork.ozlabs.org/cover/923883/
- Add patch to check CONFIG_SPL_RESET_SUPPORT in reset.h
v3: https://patchwork.ozlabs.org/cover/910018/
- remove #ifdef CONFIG_DM_RESET switch
- add maintainer emails
v2: https://patchwork.ozlabs.org/cover/908667/
- remove 'return' in designware emac driver
- keep reset control in socfpga_dw_mmc.c because it didn't call to common dwmmc probe
function when in SPL.
- add reviewed-by in ns16550 patch
v1: https://patchwork.ozlabs.org/cover/905519/
Ley Foon Tan (5):
reset: Rename CONFIG_SPL_RESET_SUPPORT to CONFIG_SPL_DM_RESET
include: reset: Change to use CONFIG_IS_ENABLED(DM_RESET)
mmc: dwmmc: socfpga: Add reset ctrl to driver
serial: ns16550: Add reset ctrl to driver
net: designware: Add reset ctrl to driver
arch/arm/mach-stm32mp/Kconfig | 2 +-
common/spl/Kconfig | 2 +-
drivers/Makefile | 2 +-
drivers/mmc/socfpga_dw_mmc.c | 17 +++++++++++++++++
drivers/net/designware.c | 8 ++++++++
drivers/serial/ns16550.c | 8 ++++++++
include/reset.h | 2 +-
7 files changed, 37 insertions(+), 4 deletions(-)
--
2.2.2
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot] [PATCH v6 1/5] reset: Rename CONFIG_SPL_RESET_SUPPORT to CONFIG_SPL_DM_RESET
2018-06-14 10:45 [U-Boot] [PATCH v6 0/5] drivers: Add reset ctrl to drivers Ley Foon Tan
@ 2018-06-14 10:45 ` Ley Foon Tan
2018-06-14 12:58 ` Simon Glass
2018-07-10 13:56 ` [U-Boot] [U-Boot, v6, " Tom Rini
2018-06-14 10:45 ` [U-Boot] [PATCH v6 2/5] include: reset: Change to use CONFIG_IS_ENABLED(DM_RESET) Ley Foon Tan
` (4 subsequent siblings)
5 siblings, 2 replies; 15+ messages in thread
From: Ley Foon Tan @ 2018-06-14 10:45 UTC (permalink / raw)
To: u-boot
Rename CONFIG_SPL_RESET_SUPPORT to CONFIG_SPL_DM_RESET, so can use
CONFIG_IS_ENABLED(DM_RESET) checking in reset.h later.
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
---
arch/arm/mach-stm32mp/Kconfig | 2 +-
common/spl/Kconfig | 2 +-
drivers/Makefile | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm/mach-stm32mp/Kconfig b/arch/arm/mach-stm32mp/Kconfig
index abceede..898ad6b 100644
--- a/arch/arm/mach-stm32mp/Kconfig
+++ b/arch/arm/mach-stm32mp/Kconfig
@@ -13,7 +13,7 @@ config SPL
select SPL_OF_TRANSLATE
select SPL_PINCTRL
select SPL_REGMAP
- select SPL_RESET_SUPPORT
+ select SPL_DM_RESET
select SPL_SERIAL_SUPPORT
select SPL_SYSCON
select SPL_DRIVERS_MISC_SUPPORT
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 431710a..bf301a9 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -577,7 +577,7 @@ config SPL_POST_MEM_SUPPORT
performed before booting. This enables the drivers in post/drivers
as part of an SPL build.
-config SPL_RESET_SUPPORT
+config SPL_DM_RESET
bool "Support reset drivers"
depends on SPL
help
diff --git a/drivers/Makefile b/drivers/Makefile
index a213ea9..66834c3 100644
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -28,7 +28,7 @@ obj-$(CONFIG_ARMADA_XP) += ddr/marvell/axp/
obj-$(CONFIG_ALTERA_SDRAM) += ddr/altera/
obj-$(CONFIG_SPL_POWER_SUPPORT) += power/ power/pmic/
obj-$(CONFIG_SPL_POWER_SUPPORT) += power/regulator/
-obj-$(CONFIG_SPL_RESET_SUPPORT) += reset/
+obj-$(CONFIG_SPL_DM_RESET) += reset/
obj-$(CONFIG_SPL_MTD_SUPPORT) += mtd/
obj-$(CONFIG_SPL_ONENAND_SUPPORT) += mtd/onenand/
obj-$(CONFIG_SPL_UBI) += mtd/ubispl/
--
2.2.2
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [U-Boot] [PATCH v6 2/5] include: reset: Change to use CONFIG_IS_ENABLED(DM_RESET)
2018-06-14 10:45 [U-Boot] [PATCH v6 0/5] drivers: Add reset ctrl to drivers Ley Foon Tan
2018-06-14 10:45 ` [U-Boot] [PATCH v6 1/5] reset: Rename CONFIG_SPL_RESET_SUPPORT to CONFIG_SPL_DM_RESET Ley Foon Tan
@ 2018-06-14 10:45 ` Ley Foon Tan
2018-06-14 12:58 ` Simon Glass
2018-07-10 13:56 ` [U-Boot] [U-Boot, v6, " Tom Rini
2018-06-14 10:45 ` [U-Boot] [PATCH v6 3/5] mmc: dwmmc: socfpga: Add reset ctrl to driver Ley Foon Tan
` (3 subsequent siblings)
5 siblings, 2 replies; 15+ messages in thread
From: Ley Foon Tan @ 2018-06-14 10:45 UTC (permalink / raw)
To: u-boot
Change to use CONFIG_IS_ENABLED(DM_RESET), so this can work in SPL
build (CONFIG_SPL_DM_RESET) and U-boot build (CONFIG_DM_RESET).
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
---
include/reset.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/reset.h b/include/reset.h
index 201bafc..a7bbc1c 100644
--- a/include/reset.h
+++ b/include/reset.h
@@ -77,7 +77,7 @@ struct reset_ctl_bulk {
unsigned int count;
};
-#ifdef CONFIG_DM_RESET
+#if CONFIG_IS_ENABLED(DM_RESET)
/**
* reset_get_by_index - Get/request a reset signal by integer index.
*
--
2.2.2
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [U-Boot] [PATCH v6 3/5] mmc: dwmmc: socfpga: Add reset ctrl to driver
2018-06-14 10:45 [U-Boot] [PATCH v6 0/5] drivers: Add reset ctrl to drivers Ley Foon Tan
2018-06-14 10:45 ` [U-Boot] [PATCH v6 1/5] reset: Rename CONFIG_SPL_RESET_SUPPORT to CONFIG_SPL_DM_RESET Ley Foon Tan
2018-06-14 10:45 ` [U-Boot] [PATCH v6 2/5] include: reset: Change to use CONFIG_IS_ENABLED(DM_RESET) Ley Foon Tan
@ 2018-06-14 10:45 ` Ley Foon Tan
2018-07-10 13:56 ` [U-Boot] [U-Boot, v6, " Tom Rini
2018-06-14 10:45 ` [U-Boot] [PATCH v6 4/5] serial: ns16550: " Ley Foon Tan
` (2 subsequent siblings)
5 siblings, 1 reply; 15+ messages in thread
From: Ley Foon Tan @ 2018-06-14 10:45 UTC (permalink / raw)
To: u-boot
Add code to reset all reset signals as in mmc DT node. A reset property is an optional feature,
so only print out a warning and do not fail if a reset property is not present.
If a reset property is discovered, then use it to deassert, thus bringing the
IP out of reset.
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
---
v3:
- Removed #ifdef CONFIG_DM_RESET switch.
v5:
- Added Simon's Reviewed-by.
---
drivers/mmc/socfpga_dw_mmc.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/drivers/mmc/socfpga_dw_mmc.c b/drivers/mmc/socfpga_dw_mmc.c
index d0a0362..4be4eb5 100644
--- a/drivers/mmc/socfpga_dw_mmc.c
+++ b/drivers/mmc/socfpga_dw_mmc.c
@@ -13,6 +13,7 @@
#include <linux/libfdt.h>
#include <linux/err.h>
#include <malloc.h>
+#include <reset.h>
DECLARE_GLOBAL_DATA_PTR;
@@ -33,6 +34,20 @@ struct dwmci_socfpga_priv_data {
unsigned int smplsel;
};
+static void socfpga_dwmci_reset(struct udevice *dev)
+{
+ struct reset_ctl_bulk reset_bulk;
+ int ret;
+
+ ret = reset_get_bulk(dev, &reset_bulk);
+ if (ret) {
+ dev_warn(dev, "Can't get reset: %d\n", ret);
+ return;
+ }
+
+ reset_deassert_bulk(&reset_bulk);
+}
+
static void socfpga_dwmci_clksel(struct dwmci_host *host)
{
struct dwmci_socfpga_priv_data *priv = host->priv;
@@ -109,6 +124,8 @@ static int socfpga_dwmmc_probe(struct udevice *dev)
struct dwmci_socfpga_priv_data *priv = dev_get_priv(dev);
struct dwmci_host *host = &priv->host;
+ socfpga_dwmci_reset(dev);
+
#ifdef CONFIG_BLK
dwmci_setup_cfg(&plat->cfg, host, host->bus_hz, 400000);
host->mmc = &plat->mmc;
--
2.2.2
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [U-Boot] [PATCH v6 4/5] serial: ns16550: Add reset ctrl to driver
2018-06-14 10:45 [U-Boot] [PATCH v6 0/5] drivers: Add reset ctrl to drivers Ley Foon Tan
` (2 preceding siblings ...)
2018-06-14 10:45 ` [U-Boot] [PATCH v6 3/5] mmc: dwmmc: socfpga: Add reset ctrl to driver Ley Foon Tan
@ 2018-06-14 10:45 ` Ley Foon Tan
2018-07-10 13:56 ` [U-Boot] [U-Boot, v6, " Tom Rini
2018-06-14 10:45 ` [U-Boot] [PATCH v6 5/5] net: designware: " Ley Foon Tan
2018-07-06 2:45 ` [U-Boot] [PATCH v6 0/5] drivers: Add reset ctrl to drivers Ley Foon Tan
5 siblings, 1 reply; 15+ messages in thread
From: Ley Foon Tan @ 2018-06-14 10:45 UTC (permalink / raw)
To: u-boot
Add code to reset all reset signals as in serial DT node. A reset property is an optional feature,
so do not fail if a reset property is not present.
If a reset property is discovered, then use it to deassert, thus bringing the
IP out of reset.
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
---
v2:
- Added Marek's Reviewed-by.
v5:
- Added Simon's Reviewed-by.
---
drivers/serial/ns16550.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c
index 53550bf..9c80090 100644
--- a/drivers/serial/ns16550.c
+++ b/drivers/serial/ns16550.c
@@ -9,6 +9,7 @@
#include <dm.h>
#include <errno.h>
#include <ns16550.h>
+#include <reset.h>
#include <serial.h>
#include <watchdog.h>
#include <linux/types.h>
@@ -177,6 +178,7 @@ void NS16550_init(NS16550_t com_port, int baud_divisor)
#if defined(CONFIG_ARCH_OMAP2PLUS)
serial_out(0x7, &com_port->mdr1); /* mode select reset TL16C750*/
#endif
+
serial_out(UART_MCRVAL, &com_port->mcr);
serial_out(ns16550_getfcr(com_port), &com_port->fcr);
if (baud_divisor != -1)
@@ -370,6 +372,12 @@ static int ns16550_serial_setbrg(struct udevice *dev, int baudrate)
int ns16550_serial_probe(struct udevice *dev)
{
struct NS16550 *const com_port = dev_get_priv(dev);
+ struct reset_ctl_bulk reset_bulk;
+ int ret;
+
+ ret = reset_get_bulk(dev, &reset_bulk);
+ if (!ret)
+ reset_deassert_bulk(&reset_bulk);
com_port->plat = dev_get_platdata(dev);
NS16550_init(com_port, -1);
--
2.2.2
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [U-Boot] [PATCH v6 5/5] net: designware: Add reset ctrl to driver
2018-06-14 10:45 [U-Boot] [PATCH v6 0/5] drivers: Add reset ctrl to drivers Ley Foon Tan
` (3 preceding siblings ...)
2018-06-14 10:45 ` [U-Boot] [PATCH v6 4/5] serial: ns16550: " Ley Foon Tan
@ 2018-06-14 10:45 ` Ley Foon Tan
2018-07-10 13:56 ` [U-Boot] [U-Boot, v6, " Tom Rini
2018-07-06 2:45 ` [U-Boot] [PATCH v6 0/5] drivers: Add reset ctrl to drivers Ley Foon Tan
5 siblings, 1 reply; 15+ messages in thread
From: Ley Foon Tan @ 2018-06-14 10:45 UTC (permalink / raw)
To: u-boot
Add code to reset all reset signals as in Ethernet DT node. A reset property is an optional feature,
so only print out a warning and do not fail if a reset property is not present.
If a reset property is discovered, then use it to deassert, thus bringing the
IP out of reset.
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
---
v2:
- Removed 'return' when failed to reset.
v5:
- Added Simon's Reviewed-by.
v6:
- Added Joe's Acked-by.
---
drivers/net/designware.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/net/designware.c b/drivers/net/designware.c
index cf12521..6797691 100644
--- a/drivers/net/designware.c
+++ b/drivers/net/designware.c
@@ -15,6 +15,7 @@
#include <miiphy.h>
#include <malloc.h>
#include <pci.h>
+#include <reset.h>
#include <linux/compiler.h>
#include <linux/err.h>
#include <linux/kernel.h>
@@ -664,6 +665,7 @@ int designware_eth_probe(struct udevice *dev)
u32 iobase = pdata->iobase;
ulong ioaddr;
int ret;
+ struct reset_ctl_bulk reset_bulk;
#ifdef CONFIG_CLK
int i, err, clock_nb;
@@ -710,6 +712,12 @@ int designware_eth_probe(struct udevice *dev)
}
#endif
+ ret = reset_get_bulk(dev, &reset_bulk);
+ if (ret)
+ dev_warn(dev, "Can't get reset: %d\n", ret);
+ else
+ reset_deassert_bulk(&reset_bulk);
+
#ifdef CONFIG_DM_PCI
/*
* If we are on PCI bus, either directly attached to a PCI root port,
--
2.2.2
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [U-Boot] [PATCH v6 1/5] reset: Rename CONFIG_SPL_RESET_SUPPORT to CONFIG_SPL_DM_RESET
2018-06-14 10:45 ` [U-Boot] [PATCH v6 1/5] reset: Rename CONFIG_SPL_RESET_SUPPORT to CONFIG_SPL_DM_RESET Ley Foon Tan
@ 2018-06-14 12:58 ` Simon Glass
2018-07-10 13:56 ` [U-Boot] [U-Boot, v6, " Tom Rini
1 sibling, 0 replies; 15+ messages in thread
From: Simon Glass @ 2018-06-14 12:58 UTC (permalink / raw)
To: u-boot
On 14 June 2018 at 04:45, Ley Foon Tan <ley.foon.tan@intel.com> wrote:
> Rename CONFIG_SPL_RESET_SUPPORT to CONFIG_SPL_DM_RESET, so can use
> CONFIG_IS_ENABLED(DM_RESET) checking in reset.h later.
>
> Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
> ---
> arch/arm/mach-stm32mp/Kconfig | 2 +-
> common/spl/Kconfig | 2 +-
> drivers/Makefile | 2 +-
> 3 files changed, 3 insertions(+), 3 deletions(-)
Reviewed-by: Simon Glass <sjg@chromium.org>
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot] [PATCH v6 2/5] include: reset: Change to use CONFIG_IS_ENABLED(DM_RESET)
2018-06-14 10:45 ` [U-Boot] [PATCH v6 2/5] include: reset: Change to use CONFIG_IS_ENABLED(DM_RESET) Ley Foon Tan
@ 2018-06-14 12:58 ` Simon Glass
2018-07-10 13:56 ` [U-Boot] [U-Boot, v6, " Tom Rini
1 sibling, 0 replies; 15+ messages in thread
From: Simon Glass @ 2018-06-14 12:58 UTC (permalink / raw)
To: u-boot
On 14 June 2018 at 04:45, Ley Foon Tan <ley.foon.tan@intel.com> wrote:
> Change to use CONFIG_IS_ENABLED(DM_RESET), so this can work in SPL
> build (CONFIG_SPL_DM_RESET) and U-boot build (CONFIG_DM_RESET).
>
> Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
> ---
> include/reset.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Reviewed-by: Simon Glass <sjg@chromium.org>
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot] [PATCH v6 0/5] drivers: Add reset ctrl to drivers
2018-06-14 10:45 [U-Boot] [PATCH v6 0/5] drivers: Add reset ctrl to drivers Ley Foon Tan
` (4 preceding siblings ...)
2018-06-14 10:45 ` [U-Boot] [PATCH v6 5/5] net: designware: " Ley Foon Tan
@ 2018-07-06 2:45 ` Ley Foon Tan
2018-07-06 17:26 ` Tom Rini
5 siblings, 1 reply; 15+ messages in thread
From: Ley Foon Tan @ 2018-07-06 2:45 UTC (permalink / raw)
To: u-boot
On Thu, Jun 14, 2018 at 6:45 PM, Ley Foon Tan <ley.foon.tan@intel.com> wrote:
> Add reset ctrl to dwmmc socfpga, designware Ethernet and ns16550 serial drivers.
>
> A reset property is an optional feature, so only print out a warning and
> do not fail if a reset property is not present.
>
> If a reset property is discovered, then use it to deassert, thus bringing the
> IP out of reset.
>
> v6:
> - Include change history to patches and cover letter
> - Added Joe's Acked-by in designware emac patch.
>
> v5: https://patchwork.ozlabs.org/cover/924857/
> - Rename CONFIG_SPL_RESET_SUPPORT to CONFIG_SPL_DM_RESET
> - Change to use CONFIG_IS_ENABLED(DM_RESET) in reset.h
> - Added Simon's Reviewed-by in dwmmc, 16550 serial and designware emac patches.
>
> v4: https://patchwork.ozlabs.org/cover/923883/
> - Add patch to check CONFIG_SPL_RESET_SUPPORT in reset.h
>
> v3: https://patchwork.ozlabs.org/cover/910018/
> - remove #ifdef CONFIG_DM_RESET switch
> - add maintainer emails
>
> v2: https://patchwork.ozlabs.org/cover/908667/
> - remove 'return' in designware emac driver
> - keep reset control in socfpga_dw_mmc.c because it didn't call to common dwmmc probe
> function when in SPL.
> - add reviewed-by in ns16550 patch
>
> v1: https://patchwork.ozlabs.org/cover/905519/
>
> Ley Foon Tan (5):
> reset: Rename CONFIG_SPL_RESET_SUPPORT to CONFIG_SPL_DM_RESET
> include: reset: Change to use CONFIG_IS_ENABLED(DM_RESET)
> mmc: dwmmc: socfpga: Add reset ctrl to driver
> serial: ns16550: Add reset ctrl to driver
> net: designware: Add reset ctrl to driver
>
> arch/arm/mach-stm32mp/Kconfig | 2 +-
> common/spl/Kconfig | 2 +-
> drivers/Makefile | 2 +-
> drivers/mmc/socfpga_dw_mmc.c | 17 +++++++++++++++++
> drivers/net/designware.c | 8 ++++++++
> drivers/serial/ns16550.c | 8 ++++++++
> include/reset.h | 2 +-
> 7 files changed, 37 insertions(+), 4 deletions(-)
>
> --
> 2.2.2
>
Hi Tom
Can help to merge this series of patches?
Thanks.
Regards
Ley Foon
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot] [PATCH v6 0/5] drivers: Add reset ctrl to drivers
2018-07-06 2:45 ` [U-Boot] [PATCH v6 0/5] drivers: Add reset ctrl to drivers Ley Foon Tan
@ 2018-07-06 17:26 ` Tom Rini
0 siblings, 0 replies; 15+ messages in thread
From: Tom Rini @ 2018-07-06 17:26 UTC (permalink / raw)
To: u-boot
On Fri, Jul 06, 2018 at 10:45:18AM +0800, Ley Foon Tan wrote:
> On Thu, Jun 14, 2018 at 6:45 PM, Ley Foon Tan <ley.foon.tan@intel.com> wrote:
> > Add reset ctrl to dwmmc socfpga, designware Ethernet and ns16550 serial drivers.
> >
> > A reset property is an optional feature, so only print out a warning and
> > do not fail if a reset property is not present.
> >
> > If a reset property is discovered, then use it to deassert, thus bringing the
> > IP out of reset.
> >
> > v6:
> > - Include change history to patches and cover letter
> > - Added Joe's Acked-by in designware emac patch.
> >
> > v5: https://patchwork.ozlabs.org/cover/924857/
> > - Rename CONFIG_SPL_RESET_SUPPORT to CONFIG_SPL_DM_RESET
> > - Change to use CONFIG_IS_ENABLED(DM_RESET) in reset.h
> > - Added Simon's Reviewed-by in dwmmc, 16550 serial and designware emac patches.
> >
> > v4: https://patchwork.ozlabs.org/cover/923883/
> > - Add patch to check CONFIG_SPL_RESET_SUPPORT in reset.h
> >
> > v3: https://patchwork.ozlabs.org/cover/910018/
> > - remove #ifdef CONFIG_DM_RESET switch
> > - add maintainer emails
> >
> > v2: https://patchwork.ozlabs.org/cover/908667/
> > - remove 'return' in designware emac driver
> > - keep reset control in socfpga_dw_mmc.c because it didn't call to common dwmmc probe
> > function when in SPL.
> > - add reviewed-by in ns16550 patch
> >
> > v1: https://patchwork.ozlabs.org/cover/905519/
> >
> > Ley Foon Tan (5):
> > reset: Rename CONFIG_SPL_RESET_SUPPORT to CONFIG_SPL_DM_RESET
> > include: reset: Change to use CONFIG_IS_ENABLED(DM_RESET)
> > mmc: dwmmc: socfpga: Add reset ctrl to driver
> > serial: ns16550: Add reset ctrl to driver
> > net: designware: Add reset ctrl to driver
> >
> > arch/arm/mach-stm32mp/Kconfig | 2 +-
> > common/spl/Kconfig | 2 +-
> > drivers/Makefile | 2 +-
> > drivers/mmc/socfpga_dw_mmc.c | 17 +++++++++++++++++
> > drivers/net/designware.c | 8 ++++++++
> > drivers/serial/ns16550.c | 8 ++++++++
> > include/reset.h | 2 +-
> > 7 files changed, 37 insertions(+), 4 deletions(-)
> >
> > --
> > 2.2.2
> >
>
> Hi Tom
>
> Can help to merge this series of patches?
I suspect I will take these shortly after the release, thanks for being
patient!
--
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/20180706/f610421d/attachment.sig>
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot] [U-Boot, v6, 1/5] reset: Rename CONFIG_SPL_RESET_SUPPORT to CONFIG_SPL_DM_RESET
2018-06-14 10:45 ` [U-Boot] [PATCH v6 1/5] reset: Rename CONFIG_SPL_RESET_SUPPORT to CONFIG_SPL_DM_RESET Ley Foon Tan
2018-06-14 12:58 ` Simon Glass
@ 2018-07-10 13:56 ` Tom Rini
1 sibling, 0 replies; 15+ messages in thread
From: Tom Rini @ 2018-07-10 13:56 UTC (permalink / raw)
To: u-boot
On Thu, Jun 14, 2018 at 06:45:19PM +0800, Ley Foon Tan wrote:
> Rename CONFIG_SPL_RESET_SUPPORT to CONFIG_SPL_DM_RESET, so can use
> CONFIG_IS_ENABLED(DM_RESET) checking in reset.h later.
>
> Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>
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/20180710/37d9f8d4/attachment.sig>
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot] [U-Boot, v6, 2/5] include: reset: Change to use CONFIG_IS_ENABLED(DM_RESET)
2018-06-14 10:45 ` [U-Boot] [PATCH v6 2/5] include: reset: Change to use CONFIG_IS_ENABLED(DM_RESET) Ley Foon Tan
2018-06-14 12:58 ` Simon Glass
@ 2018-07-10 13:56 ` Tom Rini
1 sibling, 0 replies; 15+ messages in thread
From: Tom Rini @ 2018-07-10 13:56 UTC (permalink / raw)
To: u-boot
On Thu, Jun 14, 2018 at 06:45:20PM +0800, Ley Foon Tan wrote:
> Change to use CONFIG_IS_ENABLED(DM_RESET), so this can work in SPL
> build (CONFIG_SPL_DM_RESET) and U-boot build (CONFIG_DM_RESET).
>
> Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>
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/20180710/c0718074/attachment.sig>
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot] [U-Boot, v6, 3/5] mmc: dwmmc: socfpga: Add reset ctrl to driver
2018-06-14 10:45 ` [U-Boot] [PATCH v6 3/5] mmc: dwmmc: socfpga: Add reset ctrl to driver Ley Foon Tan
@ 2018-07-10 13:56 ` Tom Rini
0 siblings, 0 replies; 15+ messages in thread
From: Tom Rini @ 2018-07-10 13:56 UTC (permalink / raw)
To: u-boot
On Thu, Jun 14, 2018 at 06:45:21PM +0800, Ley Foon Tan wrote:
> Add code to reset all reset signals as in mmc DT node. A reset property is an optional feature,
> so only print out a warning and do not fail if a reset property is not present.
>
> If a reset property is discovered, then use it to deassert, thus bringing the
> IP out of reset.
>
> Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>
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/20180710/92906865/attachment.sig>
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot] [U-Boot, v6, 4/5] serial: ns16550: Add reset ctrl to driver
2018-06-14 10:45 ` [U-Boot] [PATCH v6 4/5] serial: ns16550: " Ley Foon Tan
@ 2018-07-10 13:56 ` Tom Rini
0 siblings, 0 replies; 15+ messages in thread
From: Tom Rini @ 2018-07-10 13:56 UTC (permalink / raw)
To: u-boot
On Thu, Jun 14, 2018 at 06:45:22PM +0800, Ley Foon Tan wrote:
> Add code to reset all reset signals as in serial DT node. A reset property is an optional feature,
> so do not fail if a reset property is not present.
>
> If a reset property is discovered, then use it to deassert, thus bringing the
> IP out of reset.
>
> Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
> Reviewed-by: Marek Vasut <marex@denx.de>
> Reviewed-by: Simon Glass <sjg@chromium.org>
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/20180710/342092fc/attachment.sig>
^ permalink raw reply [flat|nested] 15+ messages in thread
* [U-Boot] [U-Boot, v6, 5/5] net: designware: Add reset ctrl to driver
2018-06-14 10:45 ` [U-Boot] [PATCH v6 5/5] net: designware: " Ley Foon Tan
@ 2018-07-10 13:56 ` Tom Rini
0 siblings, 0 replies; 15+ messages in thread
From: Tom Rini @ 2018-07-10 13:56 UTC (permalink / raw)
To: u-boot
On Thu, Jun 14, 2018 at 06:45:23PM +0800, Ley Foon Tan wrote:
> Add code to reset all reset signals as in Ethernet DT node. A reset property is an optional feature,
> so only print out a warning and do not fail if a reset property is not present.
>
> If a reset property is discovered, then use it to deassert, thus bringing the
> IP out of reset.
>
> Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>
> Acked-by: Joe Hershberger <joe.hershberger@ni.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/20180710/cb049cec/attachment.sig>
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2018-07-10 13:56 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-14 10:45 [U-Boot] [PATCH v6 0/5] drivers: Add reset ctrl to drivers Ley Foon Tan
2018-06-14 10:45 ` [U-Boot] [PATCH v6 1/5] reset: Rename CONFIG_SPL_RESET_SUPPORT to CONFIG_SPL_DM_RESET Ley Foon Tan
2018-06-14 12:58 ` Simon Glass
2018-07-10 13:56 ` [U-Boot] [U-Boot, v6, " Tom Rini
2018-06-14 10:45 ` [U-Boot] [PATCH v6 2/5] include: reset: Change to use CONFIG_IS_ENABLED(DM_RESET) Ley Foon Tan
2018-06-14 12:58 ` Simon Glass
2018-07-10 13:56 ` [U-Boot] [U-Boot, v6, " Tom Rini
2018-06-14 10:45 ` [U-Boot] [PATCH v6 3/5] mmc: dwmmc: socfpga: Add reset ctrl to driver Ley Foon Tan
2018-07-10 13:56 ` [U-Boot] [U-Boot, v6, " Tom Rini
2018-06-14 10:45 ` [U-Boot] [PATCH v6 4/5] serial: ns16550: " Ley Foon Tan
2018-07-10 13:56 ` [U-Boot] [U-Boot, v6, " Tom Rini
2018-06-14 10:45 ` [U-Boot] [PATCH v6 5/5] net: designware: " Ley Foon Tan
2018-07-10 13:56 ` [U-Boot] [U-Boot, v6, " Tom Rini
2018-07-06 2:45 ` [U-Boot] [PATCH v6 0/5] drivers: Add reset ctrl to drivers Ley Foon Tan
2018-07-06 17:26 ` 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.