From patchwork Sun Sep 30 13:11:05 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Walle X-Patchwork-Id: 188165 X-Patchwork-Delegate: prafulla@marvell.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 8FCED2C007F for ; Sun, 30 Sep 2012 23:20:06 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 59AB32807D; Sun, 30 Sep 2012 15:20:04 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 nMw+VP2hbYCH; Sun, 30 Sep 2012 15:20:04 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 43F322807E; Sun, 30 Sep 2012 15:20:01 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 72B2C2807E for ; Sun, 30 Sep 2012 15:19:59 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 eRaKHm3ImoS3 for ; Sun, 30 Sep 2012 15:19:58 +0200 (CEST) X-Greylist: delayed 477 seconds by postgrey-1.27 at theia; Sun, 30 Sep 2012 15:19:56 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 mail.serverraum.org (mail.serverraum.org [78.47.150.89]) by theia.denx.de (Postfix) with ESMTP id 378A82807D for ; Sun, 30 Sep 2012 15:19:56 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.serverraum.org (Postfix) with ESMTP id 738C03F03A; Sun, 30 Sep 2012 15:11:58 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.serverraum.org Received: from mail.serverraum.org ([127.0.0.1]) by localhost (web.serverraum.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rqsQFc6p5+bL; Sun, 30 Sep 2012 15:11:58 +0200 (CEST) Received: from thanatos.fritz.box (95-89-249-28-dynip.superkabel.de [95.89.249.28]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.serverraum.org (Postfix) with ESMTPSA id 01D253F02D; Sun, 30 Sep 2012 15:11:57 +0200 (CEST) From: Michael Walle To: u-boot@lists.denx.de Date: Sun, 30 Sep 2012 15:11:05 +0200 Message-Id: <1349010665-12097-1-git-send-email-michael@walle.cc> X-Mailer: git-send-email 1.7.2.5 Cc: Tom Rini Subject: [U-Boot] [PATCH for-rc] lsxl: also turn off fan in power down mode X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de If while booting the power switch is in OFF position, turn off the fan, too. Signed-off-by: Michael Walle Cc: Prafulla Wadaskar --- Hi Tom, Hi Prafulla, while testing, i noticed i've forgot to turn off the fan in power down mode which was introduced in commit a9f1a4893364dd. Tom, can you pick this bugfix patch so it can make it into the 2012.10 release? Thanks, Michael board/buffalo/lsxl/lsxl.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/board/buffalo/lsxl/lsxl.c b/board/buffalo/lsxl/lsxl.c index b3f31d6..57776fb 100644 --- a/board/buffalo/lsxl/lsxl.c +++ b/board/buffalo/lsxl/lsxl.c @@ -195,9 +195,11 @@ int board_init(void) static void check_power_switch(void) { if (kw_gpio_get_value(GPIO_POWER_SWITCH)) { - /* turn off HDD and USB power */ + /* turn off fan, HDD and USB power */ kw_gpio_set_value(GPIO_HDD_POWER, 0); kw_gpio_set_value(GPIO_USB_VBUS, 0); + kw_gpio_set_value(GPIO_FAN_HIGH, 1); + kw_gpio_set_value(GPIO_FAN_LOW, 1); set_led(LED_OFF); /* loop until released */ @@ -207,6 +209,8 @@ static void check_power_switch(void) /* turn power on again */ kw_gpio_set_value(GPIO_HDD_POWER, 1); kw_gpio_set_value(GPIO_USB_VBUS, 1); + kw_gpio_set_value(GPIO_FAN_HIGH, 0); + kw_gpio_set_value(GPIO_FAN_LOW, 0); set_led(LED_POWER_BLINKING); } }