* [PATCH 1/1] highbank: add power off support
@ 2013-02-16 21:07 Jean-Christophe PLAGNIOL-VILLARD
2013-02-18 9:59 ` Sascha Hauer
2013-02-18 13:41 ` Rob Herring
0 siblings, 2 replies; 3+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2013-02-16 21:07 UTC (permalink / raw)
To: barebox; +Cc: Rob Herring
Cc: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
arch/arm/Kconfig | 1 +
arch/arm/configs/highbank_defconfig | 1 +
arch/arm/mach-highbank/reset.c | 8 ++++++++
3 files changed, 10 insertions(+)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index f002910..7ac134e 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -49,6 +49,7 @@ config ARCH_EP93XX
config ARCH_HIGHBANK
bool "Calxeda Highbank"
select HAS_DEBUG_LL
+ select HAS_POWEROFF
select ARCH_HAS_L2X0
select CPU_V7
select ARM_AMBA
diff --git a/arch/arm/configs/highbank_defconfig b/arch/arm/configs/highbank_defconfig
index 31ac954..b034ed1 100644
--- a/arch/arm/configs/highbank_defconfig
+++ b/arch/arm/configs/highbank_defconfig
@@ -35,6 +35,7 @@ CONFIG_CMD_BOOTM_OFTREE_UIMAGE=y
CONFIG_CMD_UIMAGE=y
# CONFIG_CMD_BOOTU is not set
CONFIG_CMD_RESET=y
+CONFIG_CMD_POWEROFF=y
CONFIG_CMD_GO=y
CONFIG_CMD_OFTREE=y
CONFIG_CMD_OFTREE_PROBE=y
diff --git a/arch/arm/mach-highbank/reset.c b/arch/arm/mach-highbank/reset.c
index 41418b2..630672a 100644
--- a/arch/arm/mach-highbank/reset.c
+++ b/arch/arm/mach-highbank/reset.c
@@ -17,3 +17,11 @@ void __noreturn reset_cpu(ulong addr)
while(1);
}
+
+void __noreturn poweroff()
+{
+ shutdown_barebox();
+
+ hingbank_set_pwr_shutdown();
+ while(1);
+}
--
1.7.10.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] highbank: add power off support
2013-02-16 21:07 [PATCH 1/1] highbank: add power off support Jean-Christophe PLAGNIOL-VILLARD
@ 2013-02-18 9:59 ` Sascha Hauer
2013-02-18 13:41 ` Rob Herring
1 sibling, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2013-02-18 9:59 UTC (permalink / raw)
To: Jean-Christophe PLAGNIOL-VILLARD; +Cc: barebox, Rob Herring
On Sat, Feb 16, 2013 at 10:07:59PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
> Cc: Rob Herring <rob.herring@calxeda.com>
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Applied, thanks
Sascha
> ---
> arch/arm/Kconfig | 1 +
> arch/arm/configs/highbank_defconfig | 1 +
> arch/arm/mach-highbank/reset.c | 8 ++++++++
> 3 files changed, 10 insertions(+)
>
> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> index f002910..7ac134e 100644
> --- a/arch/arm/Kconfig
> +++ b/arch/arm/Kconfig
> @@ -49,6 +49,7 @@ config ARCH_EP93XX
> config ARCH_HIGHBANK
> bool "Calxeda Highbank"
> select HAS_DEBUG_LL
> + select HAS_POWEROFF
> select ARCH_HAS_L2X0
> select CPU_V7
> select ARM_AMBA
> diff --git a/arch/arm/configs/highbank_defconfig b/arch/arm/configs/highbank_defconfig
> index 31ac954..b034ed1 100644
> --- a/arch/arm/configs/highbank_defconfig
> +++ b/arch/arm/configs/highbank_defconfig
> @@ -35,6 +35,7 @@ CONFIG_CMD_BOOTM_OFTREE_UIMAGE=y
> CONFIG_CMD_UIMAGE=y
> # CONFIG_CMD_BOOTU is not set
> CONFIG_CMD_RESET=y
> +CONFIG_CMD_POWEROFF=y
> CONFIG_CMD_GO=y
> CONFIG_CMD_OFTREE=y
> CONFIG_CMD_OFTREE_PROBE=y
> diff --git a/arch/arm/mach-highbank/reset.c b/arch/arm/mach-highbank/reset.c
> index 41418b2..630672a 100644
> --- a/arch/arm/mach-highbank/reset.c
> +++ b/arch/arm/mach-highbank/reset.c
> @@ -17,3 +17,11 @@ void __noreturn reset_cpu(ulong addr)
>
> while(1);
> }
> +
> +void __noreturn poweroff()
> +{
> + shutdown_barebox();
> +
> + hingbank_set_pwr_shutdown();
> + while(1);
> +}
> --
> 1.7.10.4
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/1] highbank: add power off support
2013-02-16 21:07 [PATCH 1/1] highbank: add power off support Jean-Christophe PLAGNIOL-VILLARD
2013-02-18 9:59 ` Sascha Hauer
@ 2013-02-18 13:41 ` Rob Herring
1 sibling, 0 replies; 3+ messages in thread
From: Rob Herring @ 2013-02-18 13:41 UTC (permalink / raw)
To: Jean-Christophe PLAGNIOL-VILLARD; +Cc: barebox
On 02/16/2013 03:07 PM, Jean-Christophe PLAGNIOL-VILLARD wrote:
> Cc: Rob Herring <rob.herring@calxeda.com>
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> ---
> arch/arm/Kconfig | 1 +
> arch/arm/configs/highbank_defconfig | 1 +
> arch/arm/mach-highbank/reset.c | 8 ++++++++
> 3 files changed, 10 insertions(+)
>
> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> index f002910..7ac134e 100644
> --- a/arch/arm/Kconfig
> +++ b/arch/arm/Kconfig
> @@ -49,6 +49,7 @@ config ARCH_EP93XX
> config ARCH_HIGHBANK
> bool "Calxeda Highbank"
> select HAS_DEBUG_LL
> + select HAS_POWEROFF
> select ARCH_HAS_L2X0
> select CPU_V7
> select ARM_AMBA
> diff --git a/arch/arm/configs/highbank_defconfig b/arch/arm/configs/highbank_defconfig
> index 31ac954..b034ed1 100644
> --- a/arch/arm/configs/highbank_defconfig
> +++ b/arch/arm/configs/highbank_defconfig
> @@ -35,6 +35,7 @@ CONFIG_CMD_BOOTM_OFTREE_UIMAGE=y
> CONFIG_CMD_UIMAGE=y
> # CONFIG_CMD_BOOTU is not set
> CONFIG_CMD_RESET=y
> +CONFIG_CMD_POWEROFF=y
> CONFIG_CMD_GO=y
> CONFIG_CMD_OFTREE=y
> CONFIG_CMD_OFTREE_PROBE=y
> diff --git a/arch/arm/mach-highbank/reset.c b/arch/arm/mach-highbank/reset.c
> index 41418b2..630672a 100644
> --- a/arch/arm/mach-highbank/reset.c
> +++ b/arch/arm/mach-highbank/reset.c
> @@ -17,3 +17,11 @@ void __noreturn reset_cpu(ulong addr)
>
> while(1);
> }
> +
> +void __noreturn poweroff()
> +{
> + shutdown_barebox();
> +
> + hingbank_set_pwr_shutdown();
> + while(1);
This needs a wfi to trigger poweroff.
Rob
> +}
>
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-02-18 13:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-16 21:07 [PATCH 1/1] highbank: add power off support Jean-Christophe PLAGNIOL-VILLARD
2013-02-18 9:59 ` Sascha Hauer
2013-02-18 13:41 ` Rob Herring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox