From patchwork Thu Feb 18 00:02:28 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 80138 X-Patchwork-Delegate: khilman@deeprootsystems.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1I0AdYq013523 for ; Thu, 18 Feb 2010 00:10:46 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758032Ab0BRAKq (ORCPT ); Wed, 17 Feb 2010 19:10:46 -0500 Received: from mail-gx0-f227.google.com ([209.85.217.227]:38289 "EHLO mail-gx0-f227.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757925Ab0BRAKq (ORCPT ); Wed, 17 Feb 2010 19:10:46 -0500 Received: by gxk27 with SMTP id 27so1965510gxk.1 for ; Wed, 17 Feb 2010 16:10:45 -0800 (PST) Received: by 10.150.187.5 with SMTP id k5mr11879536ybf.141.1266451363716; Wed, 17 Feb 2010 16:02:43 -0800 (PST) Received: from localhost (c-24-118-212-219.hsd1.mn.comcast.net [24.118.212.219]) by mx.google.com with ESMTPS id 23sm8527393iwn.15.2010.02.17.16.02.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 17 Feb 2010 16:02:42 -0800 (PST) From: Kevin Hilman To: linux-omap@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Kalle Jokiniemi Subject: [PATCH 5/7] OMAP3: RX-51: Pass cpu idle parameters Date: Wed, 17 Feb 2010 18:02:28 -0600 Message-Id: <1266451350-4480-6-git-send-email-khilman@deeprootsystems.com> X-Mailer: git-send-email 1.6.6 In-Reply-To: <1266451350-4480-1-git-send-email-khilman@deeprootsystems.com> References: <1266451350-4480-1-git-send-email-khilman@deeprootsystems.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 18 Feb 2010 00:10:47 +0000 (UTC) diff --git a/arch/arm/mach-omap2/board-rx51.c b/arch/arm/mach-omap2/board-rx51.c index 26b70da..acfb898 100644 --- a/arch/arm/mach-omap2/board-rx51.c +++ b/arch/arm/mach-omap2/board-rx51.c @@ -31,6 +31,7 @@ #include #include "mux.h" +#include "pm.h" #define RX51_GPIO_SLEEP_IND 162 @@ -56,6 +57,23 @@ static struct platform_device leds_gpio = { }, }; +static struct cpuidle_params rx51_cpuidle_params[] = { + /* C1 */ + {1, 110, 162, 5}, + /* C2 */ + {1, 106, 180, 309}, + /* C3 */ + {0, 107, 410, 46057}, + /* C4 */ + {0, 121, 3374, 46057}, + /* C5 */ + {1, 855, 1146, 46057}, + /* C6 */ + {0, 7580, 4134, 484329}, + /* C7 */ + {1, 7505, 15274, 484329}, +}; + static struct omap_lcd_config rx51_lcd_config = { .ctrl_name = "internal", }; @@ -85,6 +103,7 @@ static void __init rx51_init_irq(void) omap_board_config = rx51_config; omap_board_config_size = ARRAY_SIZE(rx51_config); + omap3_pm_init_cpuidle(rx51_cpuidle_params); sdrc_params = rx51_get_sdram_timings(); omap2_init_common_hw(sdrc_params, sdrc_params); omap_init_irq();