|
@@ -33,6 +33,7 @@
|
|
#include "clock.h"
|
|
#include "clock.h"
|
|
#include "mmc.h"
|
|
#include "mmc.h"
|
|
#include "spi.h"
|
|
#include "spi.h"
|
|
|
|
+#include "i2c.h"
|
|
|
|
|
|
/*
|
|
/*
|
|
* Static I/O mappings that are needed for booting the U300 platforms. The
|
|
* Static I/O mappings that are needed for booting the U300 platforms. The
|
|
@@ -379,14 +380,14 @@ static struct platform_device wdog_device = {
|
|
};
|
|
};
|
|
|
|
|
|
static struct platform_device i2c0_device = {
|
|
static struct platform_device i2c0_device = {
|
|
- .name = "stddci2c",
|
|
|
|
|
|
+ .name = "stu300",
|
|
.id = 0,
|
|
.id = 0,
|
|
.num_resources = ARRAY_SIZE(i2c0_resources),
|
|
.num_resources = ARRAY_SIZE(i2c0_resources),
|
|
.resource = i2c0_resources,
|
|
.resource = i2c0_resources,
|
|
};
|
|
};
|
|
|
|
|
|
static struct platform_device i2c1_device = {
|
|
static struct platform_device i2c1_device = {
|
|
- .name = "stddci2c",
|
|
|
|
|
|
+ .name = "stu300",
|
|
.id = 1,
|
|
.id = 1,
|
|
.num_resources = ARRAY_SIZE(i2c1_resources),
|
|
.num_resources = ARRAY_SIZE(i2c1_resources),
|
|
.resource = i2c1_resources,
|
|
.resource = i2c1_resources,
|
|
@@ -625,6 +626,9 @@ void __init u300_init_devices(void)
|
|
|
|
|
|
u300_assign_physmem();
|
|
u300_assign_physmem();
|
|
|
|
|
|
|
|
+ /* Register subdevices on the I2C buses */
|
|
|
|
+ u300_i2c_register_board_devices();
|
|
|
|
+
|
|
/* Register subdevices on the SPI bus */
|
|
/* Register subdevices on the SPI bus */
|
|
u300_spi_register_board_devices();
|
|
u300_spi_register_board_devices();
|
|
|
|
|