Submitted four more patches upstream
[nslu2-linux/kernel.git] / patches / 2.6.25 / ixp4xx-4774-dsmg600-i2c-info.patch
blob45673e9bb03e8ce56efb21cd4057fa99cf258728
1 From d07f5baa6326dde08d5a462a68a248083081e316 Mon Sep 17 00:00:00 2001
2 From: Rod Whitby <rod@whitby.id.au>
3 Date: Sun, 27 Jan 2008 10:36:52 +1030
4 Subject: [PATCH] ixp4xx: Register dsmg600 rtc i2c_board_info
6 Register the i2c board info related to the RTC chip on the dsmg600
7 board to allow it to be found automatically on boot.
9 Signed-off-by: Rod Whitby <rod@whitby.id.au>
10 Signed-off-by: Alessandro Zummo <a.zummo@towertech.it>
11 ---
12 arch/arm/mach-ixp4xx/dsmg600-setup.c | 10 ++++++++++
13 1 files changed, 10 insertions(+), 0 deletions(-)
15 diff --git a/arch/arm/mach-ixp4xx/dsmg600-setup.c b/arch/arm/mach-ixp4xx/dsmg600-setup.c
16 index 1e75e10..14bc67a 100644
17 --- a/arch/arm/mach-ixp4xx/dsmg600-setup.c
18 +++ b/arch/arm/mach-ixp4xx/dsmg600-setup.c
19 @@ -14,6 +14,7 @@
20 #include <linux/kernel.h>
21 #include <linux/serial.h>
22 #include <linux/serial_8250.h>
23 +#include <linux/i2c.h>
25 #include <asm/mach-types.h>
26 #include <asm/mach/arch.h>
27 @@ -48,6 +49,12 @@ static struct platform_device dsmg600_i2c_controller = {
28 .dev.platform_data = &dsmg600_i2c_gpio_pins,
31 +static struct i2c_board_info __initdata dsmg600_i2c_board_info [] = {
32 + {
33 + I2C_BOARD_INFO("rtc-pcf8563", 0x51),
34 + },
35 +};
37 #ifdef CONFIG_LEDS_CLASS
38 static struct resource dsmg600_led_resources[] = {
40 @@ -155,6 +162,9 @@ static void __init dsmg600_init(void)
42 pm_power_off = dsmg600_power_off;
44 + i2c_register_board_info(0, dsmg600_i2c_board_info,
45 + ARRAY_SIZE(dsmg600_i2c_board_info));
47 /* The UART is required on the DSM-G600 (Redboot cannot use the
48 * NIC) -- do it here so that it does *not* get removed if
49 * platform_add_devices fails!
50 --
51 1.5.2.5