diff options
author | Magnus Damm <damm@igel.co.jp> | 2009-07-31 03:47:27 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-08-04 02:05:53 -0400 |
commit | f69d5782742e57d5f047ed13440bcf1b320cb074 (patch) | |
tree | e94e37714a121bfe172c09d75b0957ab9ed8f0b7 /arch | |
parent | 9aaa74908b2117bcd560ab3ea8a9d6a491a77c28 (diff) |
sh: Runtime PM pdev hwblk - sh7722
Add hwblk_id to on-chip sh7722 platform devices.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/setup-sh7722.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7722.c b/arch/sh/kernel/cpu/sh4a/setup-sh7722.c index 67b0d87fcb27..35097753456c 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7722.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7722.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/sh_timer.h> | 17 | #include <linux/sh_timer.h> |
18 | #include <asm/clock.h> | 18 | #include <asm/clock.h> |
19 | #include <asm/mmzone.h> | 19 | #include <asm/mmzone.h> |
20 | #include <cpu/sh7722.h> | ||
20 | 21 | ||
21 | static struct resource rtc_resources[] = { | 22 | static struct resource rtc_resources[] = { |
22 | [0] = { | 23 | [0] = { |
@@ -46,6 +47,9 @@ static struct platform_device rtc_device = { | |||
46 | .id = -1, | 47 | .id = -1, |
47 | .num_resources = ARRAY_SIZE(rtc_resources), | 48 | .num_resources = ARRAY_SIZE(rtc_resources), |
48 | .resource = rtc_resources, | 49 | .resource = rtc_resources, |
50 | .archdata = { | ||
51 | .hwblk_id = HWBLK_RTC, | ||
52 | }, | ||
49 | }; | 53 | }; |
50 | 54 | ||
51 | static struct m66592_platdata usbf_platdata = { | 55 | static struct m66592_platdata usbf_platdata = { |
@@ -76,6 +80,9 @@ static struct platform_device usbf_device = { | |||
76 | }, | 80 | }, |
77 | .num_resources = ARRAY_SIZE(usbf_resources), | 81 | .num_resources = ARRAY_SIZE(usbf_resources), |
78 | .resource = usbf_resources, | 82 | .resource = usbf_resources, |
83 | .archdata = { | ||
84 | .hwblk_id = HWBLK_USBF, | ||
85 | }, | ||
79 | }; | 86 | }; |
80 | 87 | ||
81 | static struct resource iic_resources[] = { | 88 | static struct resource iic_resources[] = { |
@@ -97,6 +104,9 @@ static struct platform_device iic_device = { | |||
97 | .id = 0, /* "i2c0" clock */ | 104 | .id = 0, /* "i2c0" clock */ |
98 | .num_resources = ARRAY_SIZE(iic_resources), | 105 | .num_resources = ARRAY_SIZE(iic_resources), |
99 | .resource = iic_resources, | 106 | .resource = iic_resources, |
107 | .archdata = { | ||
108 | .hwblk_id = HWBLK_IIC, | ||
109 | }, | ||
100 | }; | 110 | }; |
101 | 111 | ||
102 | static struct uio_info vpu_platform_data = { | 112 | static struct uio_info vpu_platform_data = { |
@@ -125,6 +135,9 @@ static struct platform_device vpu_device = { | |||
125 | }, | 135 | }, |
126 | .resource = vpu_resources, | 136 | .resource = vpu_resources, |
127 | .num_resources = ARRAY_SIZE(vpu_resources), | 137 | .num_resources = ARRAY_SIZE(vpu_resources), |
138 | .archdata = { | ||
139 | .hwblk_id = HWBLK_VPU, | ||
140 | }, | ||
128 | }; | 141 | }; |
129 | 142 | ||
130 | static struct uio_info veu_platform_data = { | 143 | static struct uio_info veu_platform_data = { |
@@ -153,6 +166,9 @@ static struct platform_device veu_device = { | |||
153 | }, | 166 | }, |
154 | .resource = veu_resources, | 167 | .resource = veu_resources, |
155 | .num_resources = ARRAY_SIZE(veu_resources), | 168 | .num_resources = ARRAY_SIZE(veu_resources), |
169 | .archdata = { | ||
170 | .hwblk_id = HWBLK_VEU, | ||
171 | }, | ||
156 | }; | 172 | }; |
157 | 173 | ||
158 | static struct uio_info jpu_platform_data = { | 174 | static struct uio_info jpu_platform_data = { |
@@ -181,6 +197,9 @@ static struct platform_device jpu_device = { | |||
181 | }, | 197 | }, |
182 | .resource = jpu_resources, | 198 | .resource = jpu_resources, |
183 | .num_resources = ARRAY_SIZE(jpu_resources), | 199 | .num_resources = ARRAY_SIZE(jpu_resources), |
200 | .archdata = { | ||
201 | .hwblk_id = HWBLK_JPU, | ||
202 | }, | ||
184 | }; | 203 | }; |
185 | 204 | ||
186 | static struct sh_timer_config cmt_platform_data = { | 205 | static struct sh_timer_config cmt_platform_data = { |
@@ -213,6 +232,9 @@ static struct platform_device cmt_device = { | |||
213 | }, | 232 | }, |
214 | .resource = cmt_resources, | 233 | .resource = cmt_resources, |
215 | .num_resources = ARRAY_SIZE(cmt_resources), | 234 | .num_resources = ARRAY_SIZE(cmt_resources), |
235 | .archdata = { | ||
236 | .hwblk_id = HWBLK_CMT, | ||
237 | }, | ||
216 | }; | 238 | }; |
217 | 239 | ||
218 | static struct sh_timer_config tmu0_platform_data = { | 240 | static struct sh_timer_config tmu0_platform_data = { |
@@ -244,6 +266,9 @@ static struct platform_device tmu0_device = { | |||
244 | }, | 266 | }, |
245 | .resource = tmu0_resources, | 267 | .resource = tmu0_resources, |
246 | .num_resources = ARRAY_SIZE(tmu0_resources), | 268 | .num_resources = ARRAY_SIZE(tmu0_resources), |
269 | .archdata = { | ||
270 | .hwblk_id = HWBLK_TMU, | ||
271 | }, | ||
247 | }; | 272 | }; |
248 | 273 | ||
249 | static struct sh_timer_config tmu1_platform_data = { | 274 | static struct sh_timer_config tmu1_platform_data = { |
@@ -275,6 +300,9 @@ static struct platform_device tmu1_device = { | |||
275 | }, | 300 | }, |
276 | .resource = tmu1_resources, | 301 | .resource = tmu1_resources, |
277 | .num_resources = ARRAY_SIZE(tmu1_resources), | 302 | .num_resources = ARRAY_SIZE(tmu1_resources), |
303 | .archdata = { | ||
304 | .hwblk_id = HWBLK_TMU, | ||
305 | }, | ||
278 | }; | 306 | }; |
279 | 307 | ||
280 | static struct sh_timer_config tmu2_platform_data = { | 308 | static struct sh_timer_config tmu2_platform_data = { |
@@ -305,6 +333,9 @@ static struct platform_device tmu2_device = { | |||
305 | }, | 333 | }, |
306 | .resource = tmu2_resources, | 334 | .resource = tmu2_resources, |
307 | .num_resources = ARRAY_SIZE(tmu2_resources), | 335 | .num_resources = ARRAY_SIZE(tmu2_resources), |
336 | .archdata = { | ||
337 | .hwblk_id = HWBLK_TMU, | ||
338 | }, | ||
308 | }; | 339 | }; |
309 | 340 | ||
310 | static struct plat_sci_port sci_platform_data[] = { | 341 | static struct plat_sci_port sci_platform_data[] = { |