Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62631
b: refs/heads/master
c: fe885fa
h: refs/heads/master
i:
  62629: d24c86b
  62627: bfd2298
  62623: ee98a83
v: v3
  • Loading branch information
Arnaud Patard authored and Russell King committed Jul 20, 2007
1 parent bfb7b1b commit b02f74c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 70c14ff0e9f5e1f5456587b827620e636ba70a09
refs/heads/master: fe885fa2372b1d255974e71d5b7c51b1e9673835
13 changes: 13 additions & 0 deletions trunk/arch/arm/mach-iop32x/em7210.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <linux/serial_8250.h>
#include <linux/mtd/physmap.h>
#include <linux/platform_device.h>
#include <linux/i2c.h>
#include <asm/hardware.h>
#include <linux/io.h>
#include <linux/irq.h>
Expand All @@ -44,6 +45,15 @@ static struct sys_timer em7210_timer = {
.offset = iop_gettimeoffset,
};

/*
* EM7210 RTC
*/
static struct i2c_board_info __initdata em7210_i2c_devices[] = {
{
I2C_BOARD_INFO("rtc-rs5c372", 0x32),
.type = "rs5c372a",
},
};

/*
* EM7210 I/O
Expand Down Expand Up @@ -187,6 +197,9 @@ static void __init em7210_init_machine(void)
platform_device_register(&iop3xx_dma_0_channel);
platform_device_register(&iop3xx_dma_1_channel);

i2c_register_board_info(0, em7210_i2c_devices,
ARRAY_SIZE(em7210_i2c_devices));


pm_power_off = em7210_power_off;
}
Expand Down

0 comments on commit b02f74c

Please sign in to comment.