Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=fe885fa2372b1d255974e71d5b7c51b1e9673835
Commit:     fe885fa2372b1d255974e71d5b7c51b1e9673835
Parent:     70c14ff0e9f5e1f5456587b827620e636ba70a09
Author:     Arnaud Patard <[EMAIL PROTECTED]>
AuthorDate: Wed Jul 18 21:04:00 2007 +0100
Committer:  Russell King <[EMAIL PROTECTED]>
CommitDate: Fri Jul 20 17:29:35 2007 +0100

    [ARM] 4491/1: em7210 rtc clock
    
    The commit d815461c7a73903d0a926b3cace6f69e144c54a3 in linus tree
    converts the rtc-rs5c372 driver to a "new style" i2c driver.
    Like commit c00593f6f816e5cfa6d193a2561ca77541f71424, this patch
    register the rtc i2c device for the em7210 board.
    
    Signed-off-by: Arnaud Patard <[EMAIL PROTECTED]>
    Signed-off-by: Russell King <[EMAIL PROTECTED]>
---
 arch/arm/mach-iop32x/em7210.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-iop32x/em7210.c b/arch/arm/mach-iop32x/em7210.c
index f036205..c947152 100644
--- a/arch/arm/mach-iop32x/em7210.c
+++ b/arch/arm/mach-iop32x/em7210.c
@@ -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>
@@ -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
@@ -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;
 }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to