From patchwork Tue Mar 10 06:13:22 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 10810 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n2A6Fp5I020815 for ; Tue, 10 Mar 2009 06:15:51 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751575AbZCJGPv (ORCPT ); Tue, 10 Mar 2009 02:15:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752864AbZCJGPv (ORCPT ); Tue, 10 Mar 2009 02:15:51 -0400 Received: from wa-out-1112.google.com ([209.85.146.179]:52263 "EHLO wa-out-1112.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751575AbZCJGPu (ORCPT ); Tue, 10 Mar 2009 02:15:50 -0400 Received: by wa-out-1112.google.com with SMTP id v33so1192091wah.21 for ; Mon, 09 Mar 2009 23:15:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:date:message-id :subject; bh=0CeEsDPIa/byF/a7+Af/PoXJUss1FmdQ2VY+9cUWHLA=; b=bMJ6ErHsDY+xlJOMFwc6RIYKtPpT9i4txjOZ0CKp4Mx3CuexBa/e/xv6U5YZMf591k QkKUQiaKctL6EwJYFQjlhiUAdKDQJ+oevuxT9xiFEAKjHZi4HzeUYcxNxlY/EuEi4/Dw bCBN5m3OfxobyqiEa/xhb88LWl5+eMxvyU/us= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:subject; b=Ltj2J9TS36ljx742W3A7pc/Jg4cZ5jzg6PCNzZ+8QTzGUaWMi/qnGC6FfwovWGDzO7 1kJzi71+/o0RAiH02z4ZNi0JRRHNKUcQKhaPHRoZcTC/m0p/JotuWNEU1yoqYM7yTlVW oXDei7inFhFD/EHmv0tGB2Gm8ajFbwJ9Oon/E= Received: by 10.114.205.14 with SMTP id c14mr4033760wag.226.1236665748998; Mon, 09 Mar 2009 23:15:48 -0700 (PDT) Received: from rx1.opensource.se (210.5.32.202.bf.2iij.net [202.32.5.210]) by mx.google.com with ESMTPS id y11sm14323228pod.1.2009.03.09.23.15.47 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 09 Mar 2009 23:15:48 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm , lethal@linux-sh.org Date: Tue, 10 Mar 2009 15:13:22 +0900 Message-Id: <20090310061322.22300.17508.sendpatchset@rx1.opensource.se> Subject: [PATCH] sh: Show sleep state with Migo-R LEDs Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org From: Magnus Damm If CONFIG_PM is set, let Migo-R LEDs show sleep states. D11 will show STATUS0 and D12 PDSTATUS. Signed-off-by: Magnus Damm --- arch/sh/boards/mach-migor/setup.c | 9 +++++++++ 1 file changed, 9 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 0001/arch/sh/boards/mach-migor/setup.c +++ work/arch/sh/boards/mach-migor/setup.c 2009-03-04 12:43:25.000000000 +0900 @@ -450,6 +450,14 @@ static struct spi_board_info migor_spi_d static int __init migor_devices_setup(void) { + +#ifdef CONFIG_PM + /* Let D11 LED show STATUS0 */ + gpio_request(GPIO_FN_STATUS0, NULL); + + /* Lit D12 LED show PDSTATUS */ + gpio_request(GPIO_FN_PDSTATUS, NULL); +#else /* Lit D11 LED */ gpio_request(GPIO_PTJ7, NULL); gpio_direction_output(GPIO_PTJ7, 1); @@ -459,6 +467,7 @@ static int __init migor_devices_setup(vo gpio_request(GPIO_PTJ5, NULL); gpio_direction_output(GPIO_PTJ5, 1); gpio_export(GPIO_PTJ5, 0); +#endif /* SMC91C111 - Enable IRQ0, Setup CS4 for 16-bit fast access */ gpio_request(GPIO_FN_IRQ0, NULL);