From patchwork Fri Jul 31 07:47:53 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 38461 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 n6V7qAjV018881 for ; Fri, 31 Jul 2009 07:52:11 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750967AbZGaHwD (ORCPT ); Fri, 31 Jul 2009 03:52:03 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751447AbZGaHwD (ORCPT ); Fri, 31 Jul 2009 03:52:03 -0400 Received: from wa-out-1112.google.com ([209.85.146.182]:45660 "EHLO wa-out-1112.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750967AbZGaHwB (ORCPT ); Fri, 31 Jul 2009 03:52:01 -0400 Received: by wa-out-1112.google.com with SMTP id j5so307801wah.21 for ; Fri, 31 Jul 2009 00:52:02 -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=mufnQGFF9h5etLOd0XQdLC+LbZtWi8NEGTSo+Ho9SwU=; b=P4W60O2dQoG1fko7VlbzZKW3wTZc09wyxqeCe+Gkwm7ZetAMFqZVS1R+vzarPaTg2k QmbESjfPw4RMfl+Yr2vYqs+JFmKl8l9nvOnqiOJqs+D30fqOUI0mnITQT74tOzfEL6xX x610XkA7M4Kr9dWS+voPhJO632KDVkJPdO2fs= 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=hbsTUF7r/JpNIlhFyZynYVnf5Yu2NiQtezpNYwZ+DDqBzfLnrgiVcNAiRyuyUMy+Ts bmYzf11PsVkF2d2CRqs1XcOEZeVU1DGV2lA2v44oCbcJ+XXbTnA0YtAytb44U036HCyI kw1VwUbZrgGYPE7R4Yx9Tofs0Rd0rAe6PbOGo= Received: by 10.114.159.9 with SMTP id h9mr1957551wae.73.1249026722185; Fri, 31 Jul 2009 00:52:02 -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 l28sm4679158waf.19.2009.07.31.00.52.00 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 31 Jul 2009 00:52:01 -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:47:53 +0900 Message-Id: <20090731074753.29009.79799.sendpatchset@rx1.opensource.se> In-Reply-To: <20090731074705.29009.33769.sendpatchset@rx1.opensource.se> References: <20090731074705.29009.33769.sendpatchset@rx1.opensource.se> Subject: [PATCH 05/09] sh: Runtime PM pdev hwblk - sh7723 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 sh7723 platform devices. Signed-off-by: Magnus Damm --- arch/sh/kernel/cpu/sh4a/setup-sh7723.c | 40 ++++++++++++++++++++++++++++++++ 1 file changed, 40 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-sh7723.c +++ work/arch/sh/kernel/cpu/sh4a/setup-sh7723.c 2009-07-30 15:16:00.000000000 +0900 @@ -18,6 +18,7 @@ #include #include #include +#include static struct uio_info vpu_platform_data = { .name = "VPU5", @@ -45,6 +46,9 @@ static struct platform_device vpu_device }, .resource = vpu_resources, .num_resources = ARRAY_SIZE(vpu_resources), + .archdata = { + .hwblk_id = HWBLK_VPU, + }, }; static struct uio_info veu0_platform_data = { @@ -73,6 +77,9 @@ static struct platform_device veu0_devic }, .resource = veu0_resources, .num_resources = ARRAY_SIZE(veu0_resources), + .archdata = { + .hwblk_id = HWBLK_VEU2H0, + }, }; static struct uio_info veu1_platform_data = { @@ -101,6 +108,9 @@ static struct platform_device veu1_devic }, .resource = veu1_resources, .num_resources = ARRAY_SIZE(veu1_resources), + .archdata = { + .hwblk_id = HWBLK_VEU2H1, + }, }; static struct sh_timer_config cmt_platform_data = { @@ -133,6 +143,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 = { @@ -164,6 +177,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 = { @@ -195,6 +211,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 = { @@ -225,6 +244,9 @@ static struct platform_device tmu2_devic }, .resource = tmu2_resources, .num_resources = ARRAY_SIZE(tmu2_resources), + .archdata = { + .hwblk_id = HWBLK_TMU0, + }, }; static struct sh_timer_config tmu3_platform_data = { @@ -255,6 +277,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 = { @@ -285,6 +310,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 = { @@ -315,6 +343,9 @@ static struct platform_device tmu5_devic }, .resource = tmu5_resources, .num_resources = ARRAY_SIZE(tmu5_resources), + .archdata = { + .hwblk_id = HWBLK_TMU1, + }, }; static struct plat_sci_port sci_platform_data[] = { @@ -395,6 +426,9 @@ static struct platform_device rtc_device .id = -1, .num_resources = ARRAY_SIZE(rtc_resources), .resource = rtc_resources, + .archdata = { + .hwblk_id = HWBLK_RTC, + }, }; static struct r8a66597_platdata r8a66597_data = { @@ -424,6 +458,9 @@ static struct platform_device sh7723_usb }, .num_resources = ARRAY_SIZE(sh7723_usb_host_resources), .resource = sh7723_usb_host_resources, + .archdata = { + .hwblk_id = HWBLK_USB, + }, }; static struct resource iic_resources[] = { @@ -445,6 +482,9 @@ static struct platform_device iic_device .id = 0, /* "i2c0" clock */ .num_resources = ARRAY_SIZE(iic_resources), .resource = iic_resources, + .archdata = { + .hwblk_id = HWBLK_IIC, + }, }; static struct platform_device *sh7723_devices[] __initdata = {