From patchwork Tue Mar 1 06:30:18 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Chen X-Patchwork-Id: 258 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:41:15 -0000 Delivered-To: patches@linaro.org Received: by 10.224.19.208 with SMTP id c16cs125907qab; Mon, 28 Feb 2011 22:30:30 -0800 (PST) Received: by 10.52.172.66 with SMTP id ba2mr5084315vdc.301.1298961029793; Mon, 28 Feb 2011 22:30:29 -0800 (PST) Received: from ch1outboundpool.messaging.microsoft.com (ch1outboundpool.messaging.microsoft.com [216.32.181.183]) by mx.google.com with ESMTPS id bt5si5728296vbb.64.2011.02.28.22.30.29 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 28 Feb 2011 22:30:29 -0800 (PST) Received-SPF: neutral (google.com: 216.32.181.183 is neither permitted nor denied by best guess record for domain of b02280@freescale.com) client-ip=216.32.181.183; Authentication-Results: mx.google.com; spf=neutral (google.com: 216.32.181.183 is neither permitted nor denied by best guess record for domain of b02280@freescale.com) smtp.mail=b02280@freescale.com Received: from mail22-ch1-R.bigfish.com (216.32.181.168) by CH1EHSOBE008.bigfish.com (10.43.70.58) with Microsoft SMTP Server id 14.1.225.8; Tue, 1 Mar 2011 06:30:29 +0000 Received: from mail22-ch1 (localhost.localdomain [127.0.0.1]) by mail22-ch1-R.bigfish.com (Postfix) with ESMTP id E5C0911C83DD; Tue, 1 Mar 2011 06:30:28 +0000 (UTC) X-SpamScore: 0 X-BigFish: VS0(zzbb2cKzz1202h1082kzz8275bhz2dh2a8h668h61h) X-Spam-TCS-SCL: 0:0 X-Forefront-Antispam-Report: KIP:(null); UIP:(null); IPVD:NLI; H:de01egw01.freescale.net; RD:de01egw01.freescale.net; EFVD:NLI Received: from mail22-ch1 (localhost.localdomain [127.0.0.1]) by mail22-ch1 (MessageSwitch) id 1298961028799684_20850; Tue, 1 Mar 2011 06:30:28 +0000 (UTC) Received: from CH1EHSMHS034.bigfish.com (snatpool1.int.messaging.microsoft.com [10.43.68.242]) by mail22-ch1.bigfish.com (Postfix) with ESMTP id C11AA7D004F; Tue, 1 Mar 2011 06:30:28 +0000 (UTC) Received: from de01egw01.freescale.net (192.88.165.102) by CH1EHSMHS034.bigfish.com (10.43.70.34) with Microsoft SMTP Server (TLS) id 14.1.225.8; Tue, 1 Mar 2011 06:30:28 +0000 Received: from az33smr01.freescale.net (az33smr01.freescale.net [10.64.34.199]) by de01egw01.freescale.net (8.14.3/8.14.3) with ESMTP id p216URMS002130; Mon, 28 Feb 2011 23:30:27 -0700 (MST) Received: from weitway.ap.freescale.net (weitway.ap.freescale.net [10.192.242.83]) by az33smr01.freescale.net (8.13.1/8.13.0) with ESMTP id p216ULuv020631; Tue, 1 Mar 2011 00:30:24 -0600 (CST) From: Jason Chen To: CC: , , Jason Chen Subject: [PATCH 2/2] ARM MX53_LOCO: add pwm backlight device Date: Tue, 1 Mar 2011 14:30:18 +0800 Message-ID: <1298961018-8988-2-git-send-email-b02280@freescale.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1298961018-8988-1-git-send-email-b02280@freescale.com> References: <1298961018-8988-1-git-send-email-b02280@freescale.com> MIME-Version: 1.0 X-OriginatorOrg: freescale.com Signed-off-by: Jason Chen --- arch/arm/mach-mx5/board-mx53_loco.c | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-mx5/board-mx53_loco.c b/arch/arm/mach-mx5/board-mx53_loco.c index 160899e..6c42185 100644 --- a/arch/arm/mach-mx5/board-mx53_loco.c +++ b/arch/arm/mach-mx5/board-mx53_loco.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #include @@ -35,6 +36,7 @@ #include "crm_regs.h" #include "devices-imx53.h" +#include "devices.h" #define LOCO_FEC_PHY_RST IMX_GPIO_NR(7, 6) @@ -203,6 +205,13 @@ static const struct imxi2c_platform_data mx53_loco_i2c_data __initconst = { .bitrate = 100000, }; +static struct platform_pwm_backlight_data loco_pwm_backlight_data = { + .pwm_id = 1, + .max_brightness = 255, + .dft_brightness = 128, + .pwm_period_ns = 50000, +}; + static void __init mx53_loco_board_init(void) { mxc_iomux_v3_setup_multiple_pads(mx53_loco_pads, @@ -213,6 +222,10 @@ static void __init mx53_loco_board_init(void) imx53_add_imx2_wdt(0, NULL); imx53_add_imx_i2c(0, &mx53_loco_i2c_data); imx53_add_imx_i2c(1, &mx53_loco_i2c_data); + + imx53_add_mxc_pwm(1); + mxc_register_device(&mxc_pwm1_backlight_device, + &loco_pwm_backlight_data); } static void __init mx53_loco_timer_init(void)