diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-09-20 14:24:58 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-09-20 14:25:03 -0400 |
commit | bfefb7a0c6e08736f2d5917c468467f134bf28bb (patch) | |
tree | 7aa7084114dc083fe5b4d7b532901bdeb67188e7 /arch/sh/boards/board-sh7785lcr.c | |
parent | 8d0cc631f6dd0a9283ceb7d61d8b85ecbcd355ea (diff) | |
parent | 78f28b7c555359c67c2a0d23f7436e915329421e (diff) |
Merge branch 'linus' into x86/urgent
Merge reason: Bring in changes that the next patch will depend on.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/sh/boards/board-sh7785lcr.c')
-rw-r--r-- | arch/sh/boards/board-sh7785lcr.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/sh/boards/board-sh7785lcr.c b/arch/sh/boards/board-sh7785lcr.c index 42410a15d255..e5a8a2fde39c 100644 --- a/arch/sh/boards/board-sh7785lcr.c +++ b/arch/sh/boards/board-sh7785lcr.c | |||
@@ -223,6 +223,19 @@ static struct platform_device sm501_device = { | |||
223 | .resource = sm501_resources, | 223 | .resource = sm501_resources, |
224 | }; | 224 | }; |
225 | 225 | ||
226 | static struct resource i2c_proto_resources[] = { | ||
227 | [0] = { | ||
228 | .start = PCA9564_PROTO_32BIT_ADDR, | ||
229 | .end = PCA9564_PROTO_32BIT_ADDR + PCA9564_SIZE - 1, | ||
230 | .flags = IORESOURCE_MEM | IORESOURCE_MEM_8BIT, | ||
231 | }, | ||
232 | [1] = { | ||
233 | .start = 12, | ||
234 | .end = 12, | ||
235 | .flags = IORESOURCE_IRQ, | ||
236 | }, | ||
237 | }; | ||
238 | |||
226 | static struct resource i2c_resources[] = { | 239 | static struct resource i2c_resources[] = { |
227 | [0] = { | 240 | [0] = { |
228 | .start = PCA9564_ADDR, | 241 | .start = PCA9564_ADDR, |
@@ -271,6 +284,11 @@ static int __init sh7785lcr_devices_setup(void) | |||
271 | i2c_register_board_info(0, sh7785lcr_i2c_devices, | 284 | i2c_register_board_info(0, sh7785lcr_i2c_devices, |
272 | ARRAY_SIZE(sh7785lcr_i2c_devices)); | 285 | ARRAY_SIZE(sh7785lcr_i2c_devices)); |
273 | 286 | ||
287 | if (mach_is_sh7785lcr_pt()) { | ||
288 | i2c_device.resource = i2c_proto_resources; | ||
289 | i2c_device.num_resources = ARRAY_SIZE(i2c_proto_resources); | ||
290 | } | ||
291 | |||
274 | return platform_add_devices(sh7785lcr_devices, | 292 | return platform_add_devices(sh7785lcr_devices, |
275 | ARRAY_SIZE(sh7785lcr_devices)); | 293 | ARRAY_SIZE(sh7785lcr_devices)); |
276 | } | 294 | } |