Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a9a424ce9a209155f3d4b9f8ceba50cdebb7769b
Commit:     a9a424ce9a209155f3d4b9f8ceba50cdebb7769b
Parent:     400d8231484ce3485d04310beaef778efee1efb3
Author:     Rod Whitby <[EMAIL PROTECTED]>
AuthorDate: Tue Jan 29 00:40:02 2008 +0100
Committer:  Russell King <[EMAIL PROTECTED]>
CommitDate: Mon Feb 4 13:15:24 2008 +0000

    [ARM] 4774/2: ixp4xx: Register dsmg600 rtc i2c_board_info
    
    Register the i2c board info related to the RTC chip on the dsmg600
    board to allow it to be found automatically on boot.
    
    Signed-off-by: Rod Whitby <[EMAIL PROTECTED]>
    Signed-off-by: Alessandro Zummo <[EMAIL PROTECTED]>
    Signed-off-by: Russell King <[EMAIL PROTECTED]>
---
 arch/arm/mach-ixp4xx/dsmg600-setup.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-ixp4xx/dsmg600-setup.c 
b/arch/arm/mach-ixp4xx/dsmg600-setup.c
index c473d40..a1c44ef 100644
--- a/arch/arm/mach-ixp4xx/dsmg600-setup.c
+++ b/arch/arm/mach-ixp4xx/dsmg600-setup.c
@@ -14,6 +14,7 @@
 #include <linux/kernel.h>
 #include <linux/serial.h>
 #include <linux/serial_8250.h>
+#include <linux/i2c.h>
 #include <linux/i2c-gpio.h>
 
 #include <asm/mach-types.h>
@@ -51,6 +52,12 @@ static struct platform_device dsmg600_i2c_gpio = {
        },
 };
 
+static struct i2c_board_info __initdata dsmg600_i2c_board_info [] = {
+       {
+               I2C_BOARD_INFO("rtc-pcf8563", 0x51),
+       },
+};
+
 #ifdef CONFIG_LEDS_CLASS
 static struct resource dsmg600_led_resources[] = {
        {
@@ -158,6 +165,9 @@ static void __init dsmg600_init(void)
 
        pm_power_off = dsmg600_power_off;
 
+       i2c_register_board_info(0, dsmg600_i2c_board_info,
+                               ARRAY_SIZE(dsmg600_i2c_board_info));
+
        /* The UART is required on the DSM-G600 (Redboot cannot use the
         * NIC) -- do it here so that it does *not* get removed if
         * platform_add_devices fails!
-
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