linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/2] ARM: versatile: move restart to the device tree
@ 2016-01-25  8:30 Linus Walleij
  2016-01-25  8:53 ` Arnd Bergmann
  2016-02-15  5:01 ` Sebastian Reichel
  0 siblings, 2 replies; 3+ messages in thread
From: Linus Walleij @ 2016-01-25  8:30 UTC (permalink / raw)
  To: linux-arm-kernel

We have a power/reset driver for the Versatile family
in drivers/power/reset so let's just activate that driver
and use it and get rid of some non-DT remnants.

Cc: Sebastian Reichel <sre@kernel.org>
Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: Rob Herring <robh@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 arch/arm/mach-versatile/Kconfig        |  3 +++
 arch/arm/mach-versatile/versatile_dt.c | 13 -------------
 2 files changed, 3 insertions(+), 13 deletions(-)

diff --git a/arch/arm/mach-versatile/Kconfig b/arch/arm/mach-versatile/Kconfig
index e40f777ccf7d..b0cc26284fc9 100644
--- a/arch/arm/mach-versatile/Kconfig
+++ b/arch/arm/mach-versatile/Kconfig
@@ -8,8 +8,11 @@ config ARCH_VERSATILE
 	select COMMON_CLK_VERSATILE
 	select CPU_ARM926T
 	select ICST
+	select MFD_SYSCON
 	select MIGHT_HAVE_PCI
 	select PLAT_VERSATILE
+	select POWER_RESET
+	select POWER_RESET_VERSATILE
 	select VERSATILE_FPGA_IRQ
 	help
 	  This enables support for ARM Ltd Versatile board.
diff --git a/arch/arm/mach-versatile/versatile_dt.c b/arch/arm/mach-versatile/versatile_dt.c
index c44871851255..cf8a4ea6311a 100644
--- a/arch/arm/mach-versatile/versatile_dt.c
+++ b/arch/arm/mach-versatile/versatile_dt.c
@@ -345,18 +345,6 @@ static void __init versatile_init_early(void)
 	       __io_address(VERSATILE_SCTL_BASE));
 }
 
-static void versatile_restart(enum reboot_mode mode, const char *cmd)
-{
-	u32 val;
-
-	val = readl(versatile_sys_base + VERSATILE_SYS_RESETCTL_OFFSET);
-	val |= 0x105;
-
-	writel(0xa05f, versatile_sys_base + VERSATILE_SYS_LOCK_OFFSET);
-	writel(val, versatile_sys_base + VERSATILE_SYS_RESETCTL_OFFSET);
-	writel(0, versatile_sys_base + VERSATILE_SYS_LOCK_OFFSET);
-}
-
 static void __init versatile_dt_pci_init(void)
 {
 	u32 val;
@@ -420,5 +408,4 @@ DT_MACHINE_START(VERSATILE_PB, "ARM-Versatile (Device Tree Support)")
 	.init_early	= versatile_init_early,
 	.init_machine	= versatile_dt_init,
 	.dt_compat	= versatile_dt_match,
-	.restart	= versatile_restart,
 MACHINE_END
-- 
2.4.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] ARM: versatile: move restart to the device tree
  2016-01-25  8:30 [PATCH 2/2] ARM: versatile: move restart to the device tree Linus Walleij
@ 2016-01-25  8:53 ` Arnd Bergmann
  2016-02-15  5:01 ` Sebastian Reichel
  1 sibling, 0 replies; 3+ messages in thread
From: Arnd Bergmann @ 2016-01-25  8:53 UTC (permalink / raw)
  To: linux-arm-kernel

On Monday 25 January 2016 09:30:56 Linus Walleij wrote:
> We have a power/reset driver for the Versatile family
> in drivers/power/reset so let's just activate that driver
> and use it and get rid of some non-DT remnants.
> 
> Cc: Sebastian Reichel <sre@kernel.org>
> Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
> Cc: David Woodhouse <dwmw2@infradead.org>
> Cc: Rob Herring <robh@kernel.org>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> 

Good idea.

Acked-by: Arnd Bergmann <arnd@arndb.de>

I don't see patch 1/2 here. Maybe that was caught by the list
spam filters in some way?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 2/2] ARM: versatile: move restart to the device tree
  2016-01-25  8:30 [PATCH 2/2] ARM: versatile: move restart to the device tree Linus Walleij
  2016-01-25  8:53 ` Arnd Bergmann
@ 2016-02-15  5:01 ` Sebastian Reichel
  1 sibling, 0 replies; 3+ messages in thread
From: Sebastian Reichel @ 2016-02-15  5:01 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

On Mon, Jan 25, 2016 at 09:30:56AM +0100, Linus Walleij wrote:
> We have a power/reset driver for the Versatile family
> in drivers/power/reset so let's just activate that driver
> and use it and get rid of some non-DT remnants.
> 
> Cc: Sebastian Reichel <sre@kernel.org>
> Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
> Cc: David Woodhouse <dwmw2@infradead.org>
> Cc: Rob Herring <robh@kernel.org>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

Acked-By: Sebastian Reichel <sre@kernel.org>

-- Sebastian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20160215/ac760a53/attachment.sig>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-02-15  5:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-25  8:30 [PATCH 2/2] ARM: versatile: move restart to the device tree Linus Walleij
2016-01-25  8:53 ` Arnd Bergmann
2016-02-15  5:01 ` Sebastian Reichel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).