From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 2.mo1.mail-out.ovh.net ([178.32.119.250] helo=mo1.mail-out.ovh.net) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1U6p0S-0003Ly-Gl for barebox@lists.infradead.org; Sat, 16 Feb 2013 21:09:13 +0000 Received: from mail31.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo1.mail-out.ovh.net (Postfix) with SMTP id 090F2FFA8AD for ; Sat, 16 Feb 2013 22:24:43 +0100 (CET) From: Jean-Christophe PLAGNIOL-VILLARD Date: Sat, 16 Feb 2013 22:07:59 +0100 Message-Id: <1361048879-7331-1-git-send-email-plagnioj@jcrosoft.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 1/1] highbank: add power off support To: barebox@lists.infradead.org Cc: Rob Herring Cc: Rob Herring Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- 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