From patchwork Thu Oct 29 08:30:20 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kalle Jokiniemi X-Patchwork-Id: 56425 X-Patchwork-Delegate: khilman@deeprootsystems.com 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 n9T8UMtK022226 for ; Thu, 29 Oct 2009 08:30:22 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753383AbZJ2IaN (ORCPT ); Thu, 29 Oct 2009 04:30:13 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753221AbZJ2IaL (ORCPT ); Thu, 29 Oct 2009 04:30:11 -0400 Received: from smtp1.digia.com ([82.118.214.156]:12150 "EHLO smtp1.digia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753297AbZJ2IaI (ORCPT ); Thu, 29 Oct 2009 04:30:08 -0400 Received: from smtp1.digia.com (unknown [127.0.0.1]) by IMSA (Postfix) with ESMTP id 524B04788AF; Thu, 29 Oct 2009 10:30:12 +0200 (EET) Received: from IT-EXCH02-HKI.it.local (unknown [10.9.52.55]) by smtp1.digia.com (Postfix) with ESMTP id 4560447884A; Thu, 29 Oct 2009 10:30:12 +0200 (EET) Received: from localhost.localdomain (10.120.146.33) by IT-EXCH02-HKI.it.local (10.9.52.56) with Microsoft SMTP Server id 8.1.340.0; Thu, 29 Oct 2009 10:30:11 +0200 From: Kalle Jokiniemi To: CC: , , , Kalle Jokiniemi Subject: [PATCH 3/3] OMAP: RX-51: Pass cpu idle parameters Date: Thu, 29 Oct 2009 10:30:20 +0200 Message-ID: <1256805020-7402-4-git-send-email-kalle.jokiniemi@digia.com> X-Mailer: git-send-email 1.5.4.3 In-Reply-To: <1256805020-7402-3-git-send-email-kalle.jokiniemi@digia.com> References: <> <1256805020-7402-1-git-send-email-kalle.jokiniemi@digia.com> <1256805020-7402-2-git-send-email-kalle.jokiniemi@digia.com> <1256805020-7402-3-git-send-email-kalle.jokiniemi@digia.com> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org diff --git a/arch/arm/mach-omap2/board-rx51.c b/arch/arm/mach-omap2/board-rx51.c index 527f0c6..02fb33b 100644 --- a/arch/arm/mach-omap2/board-rx51.c +++ b/arch/arm/mach-omap2/board-rx51.c @@ -32,11 +32,28 @@ #include #include "omap3-opp.h" +#include "pm.h" #define RX51_GPIO_SLEEP_IND 162 struct omap_sdrc_params *rx51_get_sdram_timings(void); +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 gpio_led gpio_leds[] = { { .name = "sleep_ind", @@ -84,6 +101,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); omap2_init_common_hw(rx51_get_sdram_timings(), rx51_get_sdram_timings(), omap3_mpu_rate_table, omap3_dsp_rate_table, omap3_l3_rate_table);