Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 137154
b: refs/heads/master
c: 533ad5e
h: refs/heads/master
v: v3
  • Loading branch information
Catalin Marinas authored and Russell King committed Feb 19, 2009
1 parent 5d913cb commit 89f9b59
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2514cca06be9dc7ae12908085ebaf0ef49e6d8ae
refs/heads/master: 533ad5e60c0a5ff3cef7583b5b1b0eee84c2bda6
16 changes: 15 additions & 1 deletion trunk/arch/arm/mach-realview/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,25 @@ static struct resource realview_i2c_resource = {

struct platform_device realview_i2c_device = {
.name = "versatile-i2c",
.id = -1,
.id = 0,
.num_resources = 1,
.resource = &realview_i2c_resource,
};

static struct i2c_board_info realview_i2c_board_info[] = {
{
I2C_BOARD_INFO("rtc-ds1307", 0xd0 >> 1),
.type = "ds1338",
},
};

static int __init realview_i2c_init(void)
{
return i2c_register_board_info(0, realview_i2c_board_info,
ARRAY_SIZE(realview_i2c_board_info));
}
arch_initcall(realview_i2c_init);

#define REALVIEW_SYSMCI (__io_address(REALVIEW_SYS_BASE) + REALVIEW_SYS_MCI_OFFSET)

static unsigned int realview_mmc_status(struct device *dev)
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-realview/realview_pb1176.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ static void __init realview_pb1176_init(void)

realview_flash_register(&realview_pb1176_flash_resource, 1);
realview_eth_register(NULL, realview_pb1176_smsc911x_resources);
platform_device_register(&realview_i2c_device);

for (i = 0; i < ARRAY_SIZE(amba_devs); i++) {
struct amba_device *d = amba_devs[i];
Expand Down
16 changes: 15 additions & 1 deletion trunk/arch/arm/mach-versatile/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,11 +335,25 @@ static struct resource versatile_i2c_resource = {

static struct platform_device versatile_i2c_device = {
.name = "versatile-i2c",
.id = -1,
.id = 0,
.num_resources = 1,
.resource = &versatile_i2c_resource,
};

static struct i2c_board_info versatile_i2c_board_info[] = {
{
I2C_BOARD_INFO("rtc-ds1307", 0xd0 >> 1),
.type = "ds1338",
},
};

static int __init versatile_i2c_init(void)
{
return i2c_register_board_info(0, versatile_i2c_board_info,
ARRAY_SIZE(versatile_i2c_board_info));
}
arch_initcall(versatile_i2c_init);

#define VERSATILE_SYSMCI (__io_address(VERSATILE_SYS_BASE) + VERSATILE_SYS_MCI_OFFSET)

unsigned int mmc_status(struct device *dev)
Expand Down

0 comments on commit 89f9b59

Please sign in to comment.