From patchwork Mon Jul 20 13:17:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Kocialkowski X-Patchwork-Id: 497717 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 778F71402CC for ; Mon, 20 Jul 2015 23:18:44 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2BAA24B6DE; Mon, 20 Jul 2015 15:18:24 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rY6OIvQdRIil; Mon, 20 Jul 2015 15:18:23 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AF74F4B668; Mon, 20 Jul 2015 15:18:22 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4F9394B699 for ; Mon, 20 Jul 2015 15:18:20 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3CXnUdrEkWcY for ; Mon, 20 Jul 2015 15:18:20 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from gagarine.paulk.fr (gagarine.paulk.fr [109.190.93.129]) by theia.denx.de (Postfix) with ESMTPS id 3DA114B67B for ; Mon, 20 Jul 2015 15:18:09 +0200 (CEST) Received: by gagarine.paulk.fr (Postfix, from userid 65534) id 4CD281FE90; Mon, 20 Jul 2015 15:18:05 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on gagarine.paulk.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from armstrong.paulk.fr (armstrong.paulk.fr [82.233.88.171]) by gagarine.paulk.fr (Postfix) with ESMTPS id 4CE1B2009E; Mon, 20 Jul 2015 15:17:25 +0200 (CEST) Received: from localhost.localdomain (aldrin [192.168.0.128]) by armstrong.paulk.fr (Postfix) with ESMTP id 83D04378A9; Mon, 20 Jul 2015 15:17:22 +0200 (CEST) From: Paul Kocialkowski To: u-boot@lists.denx.de Date: Mon, 20 Jul 2015 15:17:16 +0200 Message-Id: <1437398238-27912-11-git-send-email-contact@paulk.fr> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1437398238-27912-1-git-send-email-contact@paulk.fr> References: <1437398238-27912-1-git-send-email-contact@paulk.fr> Cc: Tom Rini , Tom Rix , Przemyslaw Marczak Subject: [U-Boot] [PATCH 10/12] sniper: Power button reset support X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This adds support for resetting the device on a long press on the power button. Signed-off-by: Paul Kocialkowski Reviewed-by: Tom Rini --- board/lge/sniper/sniper.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/board/lge/sniper/sniper.c b/board/lge/sniper/sniper.c index 2bfc9c5..97c2ed0 100644 --- a/board/lge/sniper/sniper.c +++ b/board/lge/sniper/sniper.c @@ -95,6 +95,10 @@ int misc_init_r(void) char reboot_mode[2] = { 0 }; u32 dieid[4] = { 0 }; + /* Power button reset init */ + + twl4030_power_reset_init(); + /* Reboot mode */ reboot_mode[0] = omap_reboot_mode();