From patchwork Wed Apr 4 09:42:14 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 7609 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 1A14B23E4C for ; Wed, 4 Apr 2012 09:42:45 +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 9D7A2A1800C for ; Wed, 4 Apr 2012 09:42:44 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so109604iag.11 for ; Wed, 04 Apr 2012 02:42:44 -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=Qp01+NmcQ4xXtQAn01PRnDSe0gmdtbZ0AMMzzTpORik=; b=WTncHdRLO6VhUmYhvTap6CFcZaFLi44VRHNDaNYcpHY3fBavqW76iYtC8FprVswdi5 O4T4na7J3P2/ye8DabLxoiygkZBx6Qa/CbGQANaTtEcXAhwsVSHLggC6YuH5LJgidVP3 aGdO+39nTglRczT6LA8ggMTBMoHGP7abXEXpHnLpMBLI3AAvjBAjgOm/sooFYviq9UK9 gdybeN9Ol4ZlutWO/7jraN03phBJIV7mj4XmAS1RnHe1HBic7Q49bngb5sOkDU7NEq/B P64qb6zziT4UaWjg/Fs4+c9PVKeKxCNyY1mKn3KpGHnHTr8ZkwOMkoAU8nCrBaVLXJLz pL5Q== Received: by 10.50.51.197 with SMTP id m5mr924491igo.38.1333532564429; Wed, 04 Apr 2012 02:42:44 -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 f25csp31255iby; Wed, 4 Apr 2012 02:42:43 -0700 (PDT) Received: by 10.180.81.135 with SMTP id a7mr3634334wiy.16.1333532562763; Wed, 04 Apr 2012 02:42:42 -0700 (PDT) Received: from mail-we0-f178.google.com (mail-we0-f178.google.com [74.125.82.178]) by mx.google.com with ESMTPS id g59si107352wee.90.2012.04.04.02.42.42 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 Apr 2012 02:42:42 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.178 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=74.125.82.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.178 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-we0-f178.google.com with SMTP id a13so62973wer.37 for ; Wed, 04 Apr 2012 02:42:42 -0700 (PDT) Received: by 10.180.97.4 with SMTP id dw4mr3583103wib.18.1333532562194; Wed, 04 Apr 2012 02:42:42 -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.40 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 Apr 2012 02:42:41 -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 12/17] ARM: OMAP3: define statically the omap3_idle_data Date: Wed, 4 Apr 2012 11:42:14 +0200 Message-Id: <1333532539-10298-13-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: ALoCoQkh6T3q3ll4NGxEb2IlEwsb/XQZIACQEnvnQMwr3jflnhjmmkZoM4F1JS27OnDeWj34SYVn Signed-off-by: Daniel Lezcano --- arch/arm/mach-omap2/cpuidle34xx.c | 31 ++++++++++++++++++++++++++++++- 1 files changed, 30 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/cpuidle34xx.c b/arch/arm/mach-omap2/cpuidle34xx.c index cdf1b8f..332b636 100644 --- a/arch/arm/mach-omap2/cpuidle34xx.c +++ b/arch/arm/mach-omap2/cpuidle34xx.c @@ -46,7 +46,36 @@ struct omap3_idle_statedata { #define OMAP3_NUM_STATES 7 -struct omap3_idle_statedata omap3_idle_data[OMAP3_NUM_STATES]; +struct omap3_idle_statedata omap3_idle_data[OMAP3_NUM_STATES] = { + { + .mpu_state = PWRDM_POWER_ON, + .core_state = PWRDM_POWER_ON, + }, + { + .mpu_state = PWRDM_POWER_ON, + .core_state = PWRDM_POWER_ON, + }, + { + .mpu_state = PWRDM_POWER_RET, + .core_state = PWRDM_POWER_ON, + }, + { + .mpu_state = PWRDM_POWER_OFF, + .core_state = PWRDM_POWER_ON, + }, + { + .mpu_state = PWRDM_POWER_RET, + .core_state = PWRDM_POWER_RET, + }, + { + .mpu_state = PWRDM_POWER_OFF, + .core_state = PWRDM_POWER_RET, + }, + { + .mpu_state = PWRDM_POWER_OFF, + .core_state = PWRDM_POWER_OFF, + }, +}; struct powerdomain *mpu_pd, *core_pd, *per_pd, *cam_pd;