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

    [ARM] 4773/2: ixp4xx: Register nas100d rtc i2c_board_info
    
    Register the i2c board info related to the RTC chip on the nas100d
    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/nas100d-setup.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-ixp4xx/nas100d-setup.c 
b/arch/arm/mach-ixp4xx/nas100d-setup.c
index 213a4ce..dc782d0 100644
--- a/arch/arm/mach-ixp4xx/nas100d-setup.c
+++ b/arch/arm/mach-ixp4xx/nas100d-setup.c
@@ -16,6 +16,7 @@
 #include <linux/serial.h>
 #include <linux/serial_8250.h>
 #include <linux/leds.h>
+#include <linux/i2c.h>
 #include <linux/i2c-gpio.h>
 
 #include <asm/mach-types.h>
@@ -39,6 +40,12 @@ static struct platform_device nas100d_flash = {
        .resource               = &nas100d_flash_resource,
 };
 
+static struct i2c_board_info __initdata nas100d_i2c_board_info [] = {
+       {
+               I2C_BOARD_INFO("rtc-pcf8563", 0x51),
+       },
+};
+
 #ifdef CONFIG_LEDS_IXP4XX
 static struct resource nas100d_led_resources[] = {
        {
@@ -157,6 +164,9 @@ static void __init nas100d_init(void)
 
        pm_power_off = nas100d_power_off;
 
+       i2c_register_board_info(0, nas100d_i2c_board_info,
+                               ARRAY_SIZE(nas100d_i2c_board_info));
+
        /*
         * This is only useful on a modified machine, but it is valuable
         * to have it first in order to see debug messages, and so that
-
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