From patchwork Fri Mar 13 15:27:14 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 11756 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 n2DFTvYL027483 for ; Fri, 13 Mar 2009 15:29:57 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755617AbZCMP3v (ORCPT ); Fri, 13 Mar 2009 11:29:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755708AbZCMP3v (ORCPT ); Fri, 13 Mar 2009 11:29:51 -0400 Received: from ti-out-0910.google.com ([209.85.142.186]:36581 "EHLO ti-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755617AbZCMP3u (ORCPT ); Fri, 13 Mar 2009 11:29:50 -0400 Received: by ti-out-0910.google.com with SMTP id d10so1521754tib.23 for ; Fri, 13 Mar 2009 08:29:44 -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=XEv/lRmPuzBTiN41Lb7K6f6wrBjP3wiFd5QZyTH77Ss=; b=EVrpnLI5olZAE8gyXctsa9KE8d4w13+HUtEHRHO+574uEjWek3fa3XwXl+Ra2yMjNq 9qriaqeE0dRQ/64A3sDuUc9YVqGc3XnRzxZnF8GN4feNMjXegxXvnsSy1aj+cFbkF7hZ y57vZKC8eY/2eFWoatEUtQMFfOtcRra+H5v5Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:subject; b=i4pk9fBaP7NB7q8VNbiBVohFj29rlZtcB7piEXZvlom2wCs9sGCUmDPG76APVQUJeD KKofzZH55zDqIEVBRDnLmoZH6NGZfh7jU6IRPOshRJ7C4tjHQaNZyMNdCa2L6WlgJMYE 5jHZ8+F6a6K/LwEOI9L+TRCkMRga2W+94gdMk= Received: by 10.110.92.8 with SMTP id p8mr2040710tib.56.1236958184717; Fri, 13 Mar 2009 08:29:44 -0700 (PDT) Received: from rx1.opensource.se (210-227-008-067.jp.fiberbit.net [210.227.8.67]) by mx.google.com with ESMTPS id w12sm405885tib.20.2009.03.13.08.29.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 13 Mar 2009 08:29:43 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm , lethal@linux-sh.org Date: Sat, 14 Mar 2009 00:27:14 +0900 Message-Id: <20090313152714.20494.42365.sendpatchset@rx1.opensource.se> Subject: [PATCH] sh: add ap325 lcd power off support Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org From: Magnus Damm Improve the ap325 board code to allow the lcd panel and backlight to be powered off. Signed-off-by: Magnus Damm --- arch/sh/boards/board-ap325rxa.c | 11 +++++++++++ 1 file changed, 11 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/board-ap325rxa.c +++ work/arch/sh/boards/board-ap325rxa.c 2009-03-12 22:06:57.000000000 +0900 @@ -166,6 +166,16 @@ static void ap320_wvga_power_on(void *bo ctrl_outw(0x100, FPGA_BKLREG); } +static void ap320_wvga_power_off(void *board_data) +{ + /* backlight */ + ctrl_outw(0, FPGA_BKLREG); + gpio_set_value(GPIO_PTS3, 1); + + /* ASD AP-320/325 LCD OFF */ + ctrl_outw(0, FPGA_LCDREG); +} + static struct sh_mobile_lcdc_info lcdc_info = { .clock_source = LCDC_CLK_EXTERNAL, .ch[0] = { @@ -191,6 +201,7 @@ static struct sh_mobile_lcdc_info lcdc_i }, .board_cfg = { .display_on = ap320_wvga_power_on, + .display_off = ap320_wvga_power_off, }, } };