linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] Enable R-Mobile Reset Driver
@ 2015-02-23 15:59 Geert Uytterhoeven
  2015-02-23 15:59 ` [PATCH 1/3] ARM: shmobile: Enable R-Mobile reset driver in multiplatform defconfig Geert Uytterhoeven
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Geert Uytterhoeven @ 2015-02-23 15:59 UTC (permalink / raw)
  To: linux-arm-kernel

	Hi Simon, Magnus,

This patch series enables the R-Mobile Reset Driver, which is now in
v4.0-rc1. It can be used to restart DT-based R-Mobile APE6 (r8a73a4),
R-Mobile A1 (r8a7740), and SH-Mobile AG5 (sh73a0) through the
system-controller nodes that have been added for PM Domain support.
This series also removes the no longer needed restart callbacks on
multiplatform r8a7740 and sh73a0.
        
More detailed depencencies are in the individual patches.

Thanks for applying!

Geert Uytterhoeven (3):
  ARM: shmobile: Enable R-Mobile reset driver in multiplatform defconfig
  ARM: shmobile: r8a7740: Remove restart callback
  ARM: shmobile: sh73a0: Remove restart callback

 arch/arm/configs/shmobile_defconfig    | 3 +++
 arch/arm/mach-shmobile/setup-r8a7740.c | 8 --------
 arch/arm/mach-shmobile/setup-sh73a0.c  | 8 --------
 3 files changed, 3 insertions(+), 16 deletions(-)

-- 
1.9.1

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

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

* [PATCH 1/3] ARM: shmobile: Enable R-Mobile reset driver in multiplatform defconfig
  2015-02-23 15:59 [PATCH 0/3] Enable R-Mobile Reset Driver Geert Uytterhoeven
@ 2015-02-23 15:59 ` Geert Uytterhoeven
  2015-02-23 15:59 ` [PATCH 2/3] ARM: shmobile: r8a7740: Remove restart callback Geert Uytterhoeven
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Geert Uytterhoeven @ 2015-02-23 15:59 UTC (permalink / raw)
  To: linux-arm-kernel

This is used on R-Mobile APE6 (r8a73a4), R-Mobile A1 (r8a7740), and
SH-Mobile AG5 (sh73a0).

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
To actually work, this depends on:
  - commit fa0f8d6700857457 ("power: reset: Add reset driver for
    R-Mobile platforms"), which is in v4.0-rc1,
  - the system-controller node in the SoC's .dtsi, which was added for
    PM domain support in:
      - r8a73a4-multiplatform-for-v3.21 (r8a73a4),
      - v4.0-rc1 (r8a7740),
      - sh73a0-multiplatform-for-v3.21 (sh73a0).

Irrespectively of that, it's safe to apply anyway.
---
 arch/arm/configs/shmobile_defconfig | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/configs/shmobile_defconfig b/arch/arm/configs/shmobile_defconfig
index fb7aa02125c4e695..a904c90f957931d8 100644
--- a/arch/arm/configs/shmobile_defconfig
+++ b/arch/arm/configs/shmobile_defconfig
@@ -109,6 +109,9 @@ CONFIG_SPI_SH_HSPI=y
 CONFIG_GPIO_EM=y
 CONFIG_GPIO_RCAR=y
 CONFIG_GPIO_PCF857X=y
+CONFIG_POWER_SUPPLY=y
+CONFIG_POWER_RESET=y
+CONFIG_POWER_RESET_RMOBILE=y
 # CONFIG_HWMON is not set
 CONFIG_THERMAL=y
 CONFIG_CPU_THERMAL=y
-- 
1.9.1

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

* [PATCH 2/3] ARM: shmobile: r8a7740: Remove restart callback
  2015-02-23 15:59 [PATCH 0/3] Enable R-Mobile Reset Driver Geert Uytterhoeven
  2015-02-23 15:59 ` [PATCH 1/3] ARM: shmobile: Enable R-Mobile reset driver in multiplatform defconfig Geert Uytterhoeven
@ 2015-02-23 15:59 ` Geert Uytterhoeven
  2015-02-23 15:59 ` [PATCH 3/3] ARM: shmobile: sh73a0: " Geert Uytterhoeven
  2015-02-24  1:46 ` [PATCH 0/3] Enable R-Mobile Reset Driver Simon Horman
  3 siblings, 0 replies; 5+ messages in thread
From: Geert Uytterhoeven @ 2015-02-23 15:59 UTC (permalink / raw)
  To: linux-arm-kernel

Remove the restart handling hack from the r8a7740 generic multiplatform
case.

Restart on DT-based r8a7740 platforms is now handled through the
R-Mobile reset driver.

This reverts commit 1174c712afa2779f ("ARM: shmobile: r8a7740: Add
restart callback").

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
To avoid losing functionality, this depends on:
  - commit fa0f8d6700857457 ("power: reset: Add reset driver for
    R-Mobile platforms"), which is in v4.0-rc1,
  - commit aba07789d811b6cf ("ARM: shmobile: r8a7740 dtsi: Add PM domain
    support"), which is in v4.0-rc1,
  - "ARM: shmobile: Enable R-Mobile reset driver in multiplatform
    defconfig", which is the first patch of this series.
---
 arch/arm/mach-shmobile/setup-r8a7740.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/arch/arm/mach-shmobile/setup-r8a7740.c b/arch/arm/mach-shmobile/setup-r8a7740.c
index dd64caf792160198..9832e48396a40a92 100644
--- a/arch/arm/mach-shmobile/setup-r8a7740.c
+++ b/arch/arm/mach-shmobile/setup-r8a7740.c
@@ -842,13 +842,6 @@ static void __init r8a7740_generic_init(void)
 	of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
 }
 
-#define RESCNT2 IOMEM(0xe6188020)
-static void r8a7740_restart(enum reboot_mode mode, const char *cmd)
-{
-	/* Do soft power on reset */
-	writel(1 << 31, RESCNT2);
-}
-
 static const char *r8a7740_boards_compat_dt[] __initdata = {
 	"renesas,r8a7740",
 	NULL,
@@ -861,7 +854,6 @@ DT_MACHINE_START(R8A7740_DT, "Generic R8A7740 (Flattened Device Tree)")
 	.init_machine	= r8a7740_generic_init,
 	.init_late	= shmobile_init_late,
 	.dt_compat	= r8a7740_boards_compat_dt,
-	.restart	= r8a7740_restart,
 MACHINE_END
 
 #endif /* CONFIG_USE_OF */
-- 
1.9.1

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

* [PATCH 3/3] ARM: shmobile: sh73a0: Remove restart callback
  2015-02-23 15:59 [PATCH 0/3] Enable R-Mobile Reset Driver Geert Uytterhoeven
  2015-02-23 15:59 ` [PATCH 1/3] ARM: shmobile: Enable R-Mobile reset driver in multiplatform defconfig Geert Uytterhoeven
  2015-02-23 15:59 ` [PATCH 2/3] ARM: shmobile: r8a7740: Remove restart callback Geert Uytterhoeven
@ 2015-02-23 15:59 ` Geert Uytterhoeven
  2015-02-24  1:46 ` [PATCH 0/3] Enable R-Mobile Reset Driver Simon Horman
  3 siblings, 0 replies; 5+ messages in thread
From: Geert Uytterhoeven @ 2015-02-23 15:59 UTC (permalink / raw)
  To: linux-arm-kernel

Remove the restart handling hack from the sh73a0 generic multiplatform
case.

Restart on DT-based sh73a0 platforms is now handled through the
R-Mobile reset driver.

This basically reverts commit cad900819fba0176 ("ARM: shmobile: sh73a0:
Add restart callback").

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
---
To avoid losing functionality, this depends on:
  - commit fa0f8d6700857457 ("power: reset: Add reset driver for
    R-Mobile platforms"), which is in v4.0-rc1,
  - commit 126693a80f451ecd ("ARM: shmobile: sh73a0 dtsi: Add PM domain
    support"), which is in sh73a0-multiplatform-for-v3.21,
  - "ARM: shmobile: Enable R-Mobile reset driver in multiplatform
    defconfig", which is the first patch of this series.
---
 arch/arm/mach-shmobile/setup-sh73a0.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/arch/arm/mach-shmobile/setup-sh73a0.c b/arch/arm/mach-shmobile/setup-sh73a0.c
index d17d2682dfa8bd0c..e63c2c2558171498 100644
--- a/arch/arm/mach-shmobile/setup-sh73a0.c
+++ b/arch/arm/mach-shmobile/setup-sh73a0.c
@@ -814,13 +814,6 @@ void __init sh73a0_add_early_devices(void)
 	shmobile_setup_console();
 }
 
-#define RESCNT2 IOMEM(0xe6188020)
-static void sh73a0_restart(enum reboot_mode mode, const char *cmd)
-{
-	/* Do soft power on reset */
-	writel((1 << 31), RESCNT2);
-}
-
 #ifdef CONFIG_USE_OF
 
 static void __init sh73a0_generic_init(void)
@@ -843,7 +836,6 @@ DT_MACHINE_START(SH73A0_DT, "Generic SH73A0 (Flattened Device Tree)")
 	.init_early	= shmobile_init_delay,
 	.init_machine	= sh73a0_generic_init,
 	.init_late	= shmobile_init_late,
-	.restart	= sh73a0_restart,
 	.dt_compat	= sh73a0_boards_compat_dt,
 MACHINE_END
 #endif /* CONFIG_USE_OF */
-- 
1.9.1

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

* [PATCH 0/3] Enable R-Mobile Reset Driver
  2015-02-23 15:59 [PATCH 0/3] Enable R-Mobile Reset Driver Geert Uytterhoeven
                   ` (2 preceding siblings ...)
  2015-02-23 15:59 ` [PATCH 3/3] ARM: shmobile: sh73a0: " Geert Uytterhoeven
@ 2015-02-24  1:46 ` Simon Horman
  3 siblings, 0 replies; 5+ messages in thread
From: Simon Horman @ 2015-02-24  1:46 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, Feb 23, 2015 at 04:59:26PM +0100, Geert Uytterhoeven wrote:
> 	Hi Simon, Magnus,
> 
> This patch series enables the R-Mobile Reset Driver, which is now in
> v4.0-rc1. It can be used to restart DT-based R-Mobile APE6 (r8a73a4),
> R-Mobile A1 (r8a7740), and SH-Mobile AG5 (sh73a0) through the
> system-controller nodes that have been added for PM Domain support.
> This series also removes the no longer needed restart callbacks on
> multiplatform r8a7740 and sh73a0.
>         
> More detailed depencencies are in the individual patches.
> 
> Thanks for applying!

Thanks, done.

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

end of thread, other threads:[~2015-02-24  1:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-23 15:59 [PATCH 0/3] Enable R-Mobile Reset Driver Geert Uytterhoeven
2015-02-23 15:59 ` [PATCH 1/3] ARM: shmobile: Enable R-Mobile reset driver in multiplatform defconfig Geert Uytterhoeven
2015-02-23 15:59 ` [PATCH 2/3] ARM: shmobile: r8a7740: Remove restart callback Geert Uytterhoeven
2015-02-23 15:59 ` [PATCH 3/3] ARM: shmobile: sh73a0: " Geert Uytterhoeven
2015-02-24  1:46 ` [PATCH 0/3] Enable R-Mobile Reset Driver Simon Horman

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).