From patchwork Fri Jul 31 07:47:27 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 38466 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 n6V7wQN6019558 for ; Fri, 31 Jul 2009 07:58:26 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751034AbZGaH6Y (ORCPT ); Fri, 31 Jul 2009 03:58:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751389AbZGaH6Y (ORCPT ); Fri, 31 Jul 2009 03:58:24 -0400 Received: from mail-pz0-f196.google.com ([209.85.222.196]:64624 "EHLO mail-pz0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751034AbZGaH6X (ORCPT ); Fri, 31 Jul 2009 03:58:23 -0400 Received: by pzk34 with SMTP id 34so1313990pzk.4 for ; Fri, 31 Jul 2009 00:58:23 -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=LcHKifucELZyj3B5mi1UmExHa1Y7dl9X/kAVxVV007I=; b=HDzpOIMz5Lvqvq2n7rN4M8V3Xo2WuQIC2boYB647gkZqaGOjljVYXs5QZt+oFwrb22 wY+e2sG4OdZYkcGDnxaENM7pDiEqKBeM7IP5hm0h3/5wpVWWkatDt9fCEI8VDYVDs4BW bcjCN4/m8Q4OLjOvvrvDTIFLSY3cBAwcXJsEU= 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=KWZqYymNhl4ye/giaRyBMSLoTU5CDFn73CBAf7HwvfT6ynLmwuMsapbBDAkKKURWip IuHWbEYmNOhGJsbDV7Aalif8hS1/MhzFgYoNaIeJJeiTuSfg8/8GOQ4DcnY0wjQxqSEh tYLPqAEUid81pXStOb8/9tArGmy8gB3riGb0Q= Received: by 10.114.150.11 with SMTP id x11mr3122661wad.102.1249026695297; Fri, 31 Jul 2009 00:51:35 -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 m34sm4692089waf.22.2009.07.31.00.51.33 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 31 Jul 2009 00:51:34 -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:27 +0900 Message-Id: <20090731074727.29009.95656.sendpatchset@rx1.opensource.se> In-Reply-To: <20090731074705.29009.33769.sendpatchset@rx1.opensource.se> References: <20090731074705.29009.33769.sendpatchset@rx1.opensource.se> Subject: [PATCH 02/09] sh: Runtime PM pdev hwblk - sh7722 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 sh7722 platform devices. Signed-off-by: Magnus Damm --- arch/sh/kernel/cpu/sh4a/setup-sh7722.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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-sh7722.c +++ work/arch/sh/kernel/cpu/sh4a/setup-sh7722.c 2009-07-30 15:03:50.000000000 +0900 @@ -17,6 +17,7 @@ #include #include #include +#include static struct resource rtc_resources[] = { [0] = { @@ -46,6 +47,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 m66592_platdata usbf_platdata = { @@ -76,6 +80,9 @@ static struct platform_device usbf_devic }, .num_resources = ARRAY_SIZE(usbf_resources), .resource = usbf_resources, + .archdata = { + .hwblk_id = HWBLK_USBF, + }, }; static struct resource iic_resources[] = { @@ -97,6 +104,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 uio_info vpu_platform_data = { @@ -125,6 +135,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 veu_platform_data = { @@ -153,6 +166,9 @@ static struct platform_device veu_device }, .resource = veu_resources, .num_resources = ARRAY_SIZE(veu_resources), + .archdata = { + .hwblk_id = HWBLK_VEU, + }, }; static struct uio_info jpu_platform_data = { @@ -181,6 +197,9 @@ static struct platform_device jpu_device }, .resource = jpu_resources, .num_resources = ARRAY_SIZE(jpu_resources), + .archdata = { + .hwblk_id = HWBLK_JPU, + }, }; static struct sh_timer_config cmt_platform_data = { @@ -213,6 +232,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 = { @@ -244,6 +266,9 @@ static struct platform_device tmu0_devic }, .resource = tmu0_resources, .num_resources = ARRAY_SIZE(tmu0_resources), + .archdata = { + .hwblk_id = HWBLK_TMU, + }, }; static struct sh_timer_config tmu1_platform_data = { @@ -275,6 +300,9 @@ static struct platform_device tmu1_devic }, .resource = tmu1_resources, .num_resources = ARRAY_SIZE(tmu1_resources), + .archdata = { + .hwblk_id = HWBLK_TMU, + }, }; static struct sh_timer_config tmu2_platform_data = { @@ -305,6 +333,9 @@ static struct platform_device tmu2_devic }, .resource = tmu2_resources, .num_resources = ARRAY_SIZE(tmu2_resources), + .archdata = { + .hwblk_id = HWBLK_TMU, + }, }; static struct plat_sci_port sci_platform_data[] = {