From patchwork Fri Jul 31 07:48:11 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 38463 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 n6V7qEul018889 for ; Fri, 31 Jul 2009 07:52:23 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751413AbZGaHwV (ORCPT ); Fri, 31 Jul 2009 03:52:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751431AbZGaHwV (ORCPT ); Fri, 31 Jul 2009 03:52:21 -0400 Received: from mail-px0-f179.google.com ([209.85.216.179]:35135 "EHLO mail-px0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751413AbZGaHwU (ORCPT ); Fri, 31 Jul 2009 03:52:20 -0400 X-Greylist: delayed 2796 seconds by postgrey-1.27 at vger.kernel.org; Fri, 31 Jul 2009 03:52:20 EDT Received: by pxi9 with SMTP id 9so63298pxi.33 for ; Fri, 31 Jul 2009 00:52:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:date:message-id :in-reply-to:references:subject; bh=n2qSTCdxn2ke8M2pR0+/unhGA8xNXtUp4v/YF+qxpKQ=; b=pcwZGgpwKlXb9duGDKLfXDIedZrRo7l7pf8taPQ2jEgYoT6Tu7xgZKq5X1CyfLeHdS Aoer8ijQzDhRMPDHlVtMI1xUY/w06QwtpvRYUj+k3hUA/C1XW6MtsIIgy681Pb+MgEw1 Vhlnc+qPaLaVE+9hDVXpcWHxRIg3Mugd4TUr4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:in-reply-to:references:subject; b=ICN17JGKkv6LR9sFspG4U1trHTKgsapC1gKNbR5PKE2gM8f4rmQn3dOb/MFpaX4+dD emLH76E79WCqnYlRmBV21sdNFUPilEY8fCjNpPtYNoRtuNeN12Vz72qi+Y59cmUDMxCU mOxB0aX34r0Mhsj2Xf8DK/xy6JJp4/hWNy61k= Received: by 10.114.167.9 with SMTP id p9mr2367727wae.161.1249026740817; Fri, 31 Jul 2009 00:52:20 -0700 (PDT) Received: from rx1.opensource.se (210-225-125-011.jp.fiberphone.net [210.225.125.11]) by mx.google.com with ESMTPS id n6sm4700876wag.39.2009.07.31.00.52.18 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 31 Jul 2009 00:52:19 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: rjw@sisk.pl, Magnus Damm , lethal@linux-sh.org Date: Fri, 31 Jul 2009 16:48:11 +0900 Message-Id: <20090731074811.29009.32186.sendpatchset@rx1.opensource.se> In-Reply-To: <20090731074705.29009.33769.sendpatchset@rx1.opensource.se> References: <20090731074705.29009.33769.sendpatchset@rx1.opensource.se> Subject: [PATCH 07/09] sh: Runtime PM pdev hwblk - sh7724 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org From: Magnus Damm Add hwblk_id to on-chip sh7724 platform devices. Signed-off-by: Magnus Damm --- arch/sh/kernel/cpu/sh4a/setup-sh7724.c | 43 ++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 0001/arch/sh/kernel/cpu/sh4a/setup-sh7724.c +++ work/arch/sh/kernel/cpu/sh4a/setup-sh7724.c 2009-07-31 15:10:48.000000000 +0900 @@ -22,6 +22,7 @@ #include #include #include +#include /* Serial */ static struct plat_sci_port sci_platform_data[] = { @@ -103,6 +104,9 @@ static struct platform_device rtc_device .id = -1, .num_resources = ARRAY_SIZE(rtc_resources), .resource = rtc_resources, + .archdata = { + .hwblk_id = HWBLK_RTC, + }, }; /* I2C0 */ @@ -125,6 +129,9 @@ static struct platform_device iic0_devic .id = 0, /* "i2c0" clock */ .num_resources = ARRAY_SIZE(iic0_resources), .resource = iic0_resources, + .archdata = { + .hwblk_id = HWBLK_IIC0, + }, }; /* I2C1 */ @@ -147,6 +154,9 @@ static struct platform_device iic1_devic .id = 1, /* "i2c1" clock */ .num_resources = ARRAY_SIZE(iic1_resources), .resource = iic1_resources, + .archdata = { + .hwblk_id = HWBLK_IIC1, + }, }; /* VPU */ @@ -176,6 +186,9 @@ static struct platform_device vpu_device }, .resource = vpu_resources, .num_resources = ARRAY_SIZE(vpu_resources), + .archdata = { + .hwblk_id = HWBLK_VPU, + }, }; /* VEU0 */ @@ -205,6 +218,9 @@ static struct platform_device veu0_devic }, .resource = veu0_resources, .num_resources = ARRAY_SIZE(veu0_resources), + .archdata = { + .hwblk_id = HWBLK_VEU0, + }, }; /* VEU1 */ @@ -234,6 +250,9 @@ static struct platform_device veu1_devic }, .resource = veu1_resources, .num_resources = ARRAY_SIZE(veu1_resources), + .archdata = { + .hwblk_id = HWBLK_VEU1, + }, }; static struct sh_timer_config cmt_platform_data = { @@ -266,6 +285,9 @@ static struct platform_device cmt_device }, .resource = cmt_resources, .num_resources = ARRAY_SIZE(cmt_resources), + .archdata = { + .hwblk_id = HWBLK_CMT, + }, }; static struct sh_timer_config tmu0_platform_data = { @@ -297,6 +319,9 @@ static struct platform_device tmu0_devic }, .resource = tmu0_resources, .num_resources = ARRAY_SIZE(tmu0_resources), + .archdata = { + .hwblk_id = HWBLK_TMU0, + }, }; static struct sh_timer_config tmu1_platform_data = { @@ -328,6 +353,9 @@ static struct platform_device tmu1_devic }, .resource = tmu1_resources, .num_resources = ARRAY_SIZE(tmu1_resources), + .archdata = { + .hwblk_id = HWBLK_TMU0, + }, }; static struct sh_timer_config tmu2_platform_data = { @@ -358,6 +386,9 @@ static struct platform_device tmu2_devic }, .resource = tmu2_resources, .num_resources = ARRAY_SIZE(tmu2_resources), + .archdata = { + .hwblk_id = HWBLK_TMU0, + }, }; @@ -389,6 +420,9 @@ static struct platform_device tmu3_devic }, .resource = tmu3_resources, .num_resources = ARRAY_SIZE(tmu3_resources), + .archdata = { + .hwblk_id = HWBLK_TMU1, + }, }; static struct sh_timer_config tmu4_platform_data = { @@ -419,6 +453,9 @@ static struct platform_device tmu4_devic }, .resource = tmu4_resources, .num_resources = ARRAY_SIZE(tmu4_resources), + .archdata = { + .hwblk_id = HWBLK_TMU1, + }, }; static struct sh_timer_config tmu5_platform_data = { @@ -449,6 +486,9 @@ static struct platform_device tmu5_devic }, .resource = tmu5_resources, .num_resources = ARRAY_SIZE(tmu5_resources), + .archdata = { + .hwblk_id = HWBLK_TMU1, + }, }; /* JPU */ @@ -478,6 +518,9 @@ static struct platform_device jpu_device }, .resource = jpu_resources, .num_resources = ARRAY_SIZE(jpu_resources), + .archdata = { + .hwblk_id = HWBLK_JPU, + }, }; static struct platform_device *sh7724_devices[] __initdata = {