From patchwork Wed Apr 4 20:12:46 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 7644 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 E72DA23E47 for ; Wed, 4 Apr 2012 20:13:18 +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 AE8A4A18737 for ; Wed, 4 Apr 2012 20:13:18 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so1063293iag.11 for ; Wed, 04 Apr 2012 13:13:18 -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=gmgSnKAwphfvZMKfAEHLbANeJv5kVrn63+El+EVLHWY=; b=Zd9S47stVdwPyAaZSjVo3R8kFIrH0fgOEaR5YitpH69R8gyFXEuAZM/JX8y1dlx6JJ CV7xZbmVkXGdUPm6gpJ4S7+Y9FRi4hRPS9EIp08vsHqgeCdm0KRwE4T5iepTRsIZ2cUO wq2VpnP7LUvuJjDMcLhG6dJy/DoUU59w88l0zbCHOWzToW4dsPwEUnQLJYRZu7TANGWY Vo7qIyLX9IOyLX5V2ujYhP3zLaVxOCdynURQ0NyPdEyA9JhiV0Xigyu/3l294tOTPQSQ CWUachUBoC5SwvOsymymtLgwIm2etOJRsR91GjEEjoMqm19KueqZAYYdzqoPD8oucTlU e6hg== Received: by 10.42.203.148 with SMTP id fi20mr10814875icb.10.1333570398501; Wed, 04 Apr 2012 13:13:18 -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 f25csp56484iby; Wed, 4 Apr 2012 13:13:17 -0700 (PDT) Received: by 10.213.26.69 with SMTP id d5mr50018ebc.61.1333570396809; Wed, 04 Apr 2012 13:13:16 -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 h5si2247543wih.41.2012.04.04.13.13.16 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 Apr 2012 13:13:16 -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 a13so551012wer.37 for ; Wed, 04 Apr 2012 13:13:16 -0700 (PDT) Received: by 10.216.138.142 with SMTP id a14mr2498611wej.58.1333570396325; Wed, 04 Apr 2012 13:13:16 -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.14 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 04 Apr 2012 13:13:15 -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 12/17][V2] ARM: OMAP3: define statically the omap3_idle_data Date: Wed, 4 Apr 2012 22:12:46 +0200 Message-Id: <1333570371-1389-13-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: ALoCoQm8bs4W/WRw5dtiLl9wo99BR5y9NEkoMwnvayolrrhYq439EMwYJRoSpCffhmYSo93b+tYv Signed-off-by: Daniel Lezcano Reviewed-by: Jean Pihet --- 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;