From patchwork Wed Apr 4 09:42:07 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 7602 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 74FC523E4C for ; Wed, 4 Apr 2012 09:42:32 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 3E604A1800C for ; Wed, 4 Apr 2012 09:42:32 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so109604iag.11 for ; Wed, 04 Apr 2012 02:42:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=INk0bDpDjiIKenfgjtskSmwMYZ9+Tfd4FsrivL89Uug=; b=MCfzt05hGU1feE0h9C9SMP1u49HlAIjYReLftf3Sc0WnwjtG+DUnCn2pXvnRCzHfBE bycw4TufMvZks8x1ivqt7Y3vSuZxRdfQP3Bt17GrQiY4hgb4QqRa9wKSbofIHkPs/SnQ I/IAtg4LQ+FcOvmg2/SvBBsTOoLZhd5CzNojr9PLN/phITFa5TES5p5TZQsoEDY9K6O/ uQwFNNAF6uSc0TelyHNg89wDVX1REPUrIKQZ4bNq5JfItjYsQFtgM5uqpiC97H92AMpn 1R0h7Z0WbPyRQCdQSDBXJzUCF9XqocNMEMZ/rfv8iM+zr0qKLF9TiMp/MJFRq7qztW+O vZ5Q== Received: by 10.50.194.232 with SMTP id hz8mr915150igc.38.1333532552022; Wed, 04 Apr 2012 02:42:32 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.164.217 with SMTP id f25csp31235iby; Wed, 4 Apr 2012 02:42:31 -0700 (PDT) Received: by 10.216.134.41 with SMTP id r41mr1004391wei.13.1333532550269; Wed, 04 Apr 2012 02:42:30 -0700 (PDT) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx.google.com with ESMTPS id w74si119385weq.59.2012.04.04.02.42.29 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 Apr 2012 02:42:30 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.50 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=74.125.82.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.50 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) smtp.mail=daniel.lezcano@linaro.org Received: by mail-wg0-f50.google.com with SMTP id ds12so74938wgb.31 for ; Wed, 04 Apr 2012 02:42:29 -0700 (PDT) Received: by 10.180.80.104 with SMTP id q8mr3640411wix.14.1333532549804; Wed, 04 Apr 2012 02:42:29 -0700 (PDT) Received: from localhost.localdomain (AToulouse-159-1-7-136.w90-60.abo.wanadoo.fr. [90.60.242.136]) by mx.google.com with ESMTPS id bx13sm3462265wib.10.2012.04.04.02.42.28 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 Apr 2012 02:42:29 -0700 (PDT) From: Daniel Lezcano To: tony@atomide.com, khilman@ti.com Cc: j-pihet@ti.com, santosh.shilimkar@ti.com, rob.lee@linaro.org, linaro-dev@lists.linaro.org, patches@linaro.org Subject: [PATCH 05/17] ARM: OMAP4: cpuidle - Initialize omap4_idle_data at compile time Date: Wed, 4 Apr 2012 11:42:07 +0200 Message-Id: <1333532539-10298-6-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1333532539-10298-1-git-send-email-daniel.lezcano@linaro.org> References: <1333532539-10298-1-git-send-email-daniel.lezcano@linaro.org> X-Gm-Message-State: ALoCoQk/HQxdACvJxBJOs4Kn/vDUcBNYsems+3hycIZyaCTW+2xT+3YlniYdX/85NaL36J0ztoNK Signed-off-by: Daniel Lezcano Reviewed-by: Jean Pihet Reviewed-by: Santosh Shilimkar --- arch/arm/mach-omap2/cpuidle44xx.c | 19 ++++++++++++++++++- 1 files changed, 18 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/cpuidle44xx.c b/arch/arm/mach-omap2/cpuidle44xx.c index fb0f76e..5b20115 100644 --- a/arch/arm/mach-omap2/cpuidle44xx.c +++ b/arch/arm/mach-omap2/cpuidle44xx.c @@ -33,7 +33,24 @@ struct omap4_idle_statedata { #define OMAP4_NUM_STATES 3 -static struct omap4_idle_statedata omap4_idle_data[OMAP4_NUM_STATES]; +static struct omap4_idle_statedata omap4_idle_data[] = { + { + .cpu_state = PWRDM_POWER_ON, + .mpu_state = PWRDM_POWER_ON, + .mpu_logic_state = PWRDM_POWER_RET, + }, + { + .cpu_state = PWRDM_POWER_OFF, + .mpu_state = PWRDM_POWER_RET, + .mpu_logic_state = PWRDM_POWER_RET, + }, + { + .cpu_state = PWRDM_POWER_OFF, + .mpu_state = PWRDM_POWER_RET, + .mpu_logic_state = PWRDM_POWER_OFF, + }, +}; + static struct powerdomain *mpu_pd, *cpu0_pd, *cpu1_pd; /**