From patchwork Wed Apr 4 20:12:39 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 7637 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 B3A8A23E47 for ; Wed, 4 Apr 2012 20:13:05 +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 7C297A185BC for ; Wed, 4 Apr 2012 20:13:05 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so1063293iag.11 for ; Wed, 04 Apr 2012 13:13:05 -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=nswVvkazjBl8gNsJUJpmU0a15Gl3GwuaXBqWar+JSDZIRaHChBkIdutlkmnS7gVOop fwkn4b5vhQDsOkTn1VQ1K655Q0W9QTbfAcinzEDu6MawDplEhF+/dvmODACisnXTdDJF gcjKPCbhTk3EkVy+4xrMYd00kMvLdwyPyCPz1thch4l9zwFG9L77mpm11JMq9qIeucZI SVvqkbftbGvtnFG8a3SLZWfvR0ZPs9N1AjgCt4CRaHZQ1n7ikue7eYL8u7vU460ovUSK Qc2cFZg2To/a3aeIWUIjqTd7weXvESm/L/aYBX8JhyPgQ2HAgbXP/gfGJLlbJ9H3/t0i E0ZA== Received: by 10.50.156.229 with SMTP id wh5mr2848694igb.28.1333570385268; Wed, 04 Apr 2012 13:13:05 -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 f25csp56461iby; Wed, 4 Apr 2012 13:13:04 -0700 (PDT) Received: by 10.14.119.15 with SMTP id m15mr3607465eeh.34.1333570383784; Wed, 04 Apr 2012 13:13:03 -0700 (PDT) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by mx.google.com with ESMTPS id r8si2002364weq.31.2012.04.04.13.13.03 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 Apr 2012 13:13:03 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.172 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=209.85.212.172; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.172 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-wi0-f172.google.com with SMTP id hj6so751681wib.13 for ; Wed, 04 Apr 2012 13:13:03 -0700 (PDT) Received: by 10.216.137.163 with SMTP id y35mr2188636wei.33.1333570383290; Wed, 04 Apr 2012 13:13:03 -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 gd4sm6869495wib.6.2012.04.04.13.13.00 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 Apr 2012 13:13:01 -0700 (PDT) From: Daniel Lezcano To: santosh.shilimkar@ti.com, jean.pihet@newoldbits.com, khilman@ti.com, tony@atomide.com Cc: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, rob.lee@linaro.org, linaro-dev@lists.linaro.org, patches@linaro.org Subject: [PATCH 05/17][V2] ARM: OMAP4: cpuidle - Initialize omap4_idle_data at compile time Date: Wed, 4 Apr 2012 22:12:39 +0200 Message-Id: <1333570371-1389-6-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1333570371-1389-1-git-send-email-daniel.lezcano@linaro.org> References: <1333570371-1389-1-git-send-email-daniel.lezcano@linaro.org> X-Gm-Message-State: ALoCoQkHL5VOGwwSEHj1qxyfbO2D/X/OH+g8iCUfC7i42Jp/ufebg4Woyv3ULhiX3KH0zj6b/4/6 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; /**