aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-u300/core.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@stericsson.com>2009-08-13 16:42:01 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-08-15 10:36:29 -0400
commit6be2a0cacc1ed6899a53172e2e9b7a3587be0bea (patch)
tree2b68c9b5e06c8f7601f3145ea0c3eb34811c6dff /arch/arm/mach-u300/core.c
parentc7c8c78fdf6e9bd65d8ee879115dc2cd5d9fd0dc (diff)
ARM: 5668/2: U300 I2C board setup
This sets up the U300 I2C subdevices so that the AB3100 analog baseband ASIC is properly detected and also the camera devices in the U335 reference design get properly registered. Signed-off-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-u300/core.c')
-rw-r--r--arch/arm/mach-u300/core.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm/mach-u300/core.c b/arch/arm/mach-u300/core.c
index 38d08a1c25d..bad1ba228cb 100644
--- a/arch/arm/mach-u300/core.c
+++ b/arch/arm/mach-u300/core.c
@@ -33,6 +33,7 @@
33#include "clock.h" 33#include "clock.h"
34#include "mmc.h" 34#include "mmc.h"
35#include "spi.h" 35#include "spi.h"
36#include "i2c.h"
36 37
37/* 38/*
38 * Static I/O mappings that are needed for booting the U300 platforms. The 39 * Static I/O mappings that are needed for booting the U300 platforms. The
@@ -379,14 +380,14 @@ static struct platform_device wdog_device = {
379}; 380};
380 381
381static struct platform_device i2c0_device = { 382static struct platform_device i2c0_device = {
382 .name = "stddci2c", 383 .name = "stu300",
383 .id = 0, 384 .id = 0,
384 .num_resources = ARRAY_SIZE(i2c0_resources), 385 .num_resources = ARRAY_SIZE(i2c0_resources),
385 .resource = i2c0_resources, 386 .resource = i2c0_resources,
386}; 387};
387 388
388static struct platform_device i2c1_device = { 389static struct platform_device i2c1_device = {
389 .name = "stddci2c", 390 .name = "stu300",
390 .id = 1, 391 .id = 1,
391 .num_resources = ARRAY_SIZE(i2c1_resources), 392 .num_resources = ARRAY_SIZE(i2c1_resources),
392 .resource = i2c1_resources, 393 .resource = i2c1_resources,
@@ -625,6 +626,9 @@ void __init u300_init_devices(void)
625 626
626 u300_assign_physmem(); 627 u300_assign_physmem();
627 628
629 /* Register subdevices on the I2C buses */
630 u300_i2c_register_board_devices();
631
628 /* Register subdevices on the SPI bus */ 632 /* Register subdevices on the SPI bus */
629 u300_spi_register_board_devices(); 633 u300_spi_register_board_devices();
630 634