diff options
| author | Rod Whitby <rod@whitby.id.au> | 2008-01-28 18:38:44 -0500 |
|---|---|---|
| committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-02-04 08:15:24 -0500 |
| commit | 400d8231484ce3485d04310beaef778efee1efb3 (patch) | |
| tree | e2fc01a2124ae7c8044d38a2cd360a155f2404c3 | |
| parent | e28067d533f1c6fc8c5e31495994f1c9bf7febe6 (diff) | |
[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 <rod@whitby.id.au>
Signed-off-by: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
| -rw-r--r-- | 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 213a4cea9117..dc782d06c2b1 100644 --- a/arch/arm/mach-ixp4xx/nas100d-setup.c +++ b/arch/arm/mach-ixp4xx/nas100d-setup.c | |||
| @@ -16,6 +16,7 @@ | |||
| 16 | #include <linux/serial.h> | 16 | #include <linux/serial.h> |
| 17 | #include <linux/serial_8250.h> | 17 | #include <linux/serial_8250.h> |
| 18 | #include <linux/leds.h> | 18 | #include <linux/leds.h> |
| 19 | #include <linux/i2c.h> | ||
| 19 | #include <linux/i2c-gpio.h> | 20 | #include <linux/i2c-gpio.h> |
| 20 | 21 | ||
| 21 | #include <asm/mach-types.h> | 22 | #include <asm/mach-types.h> |
| @@ -39,6 +40,12 @@ static struct platform_device nas100d_flash = { | |||
| 39 | .resource = &nas100d_flash_resource, | 40 | .resource = &nas100d_flash_resource, |
| 40 | }; | 41 | }; |
| 41 | 42 | ||
| 43 | static struct i2c_board_info __initdata nas100d_i2c_board_info [] = { | ||
| 44 | { | ||
| 45 | I2C_BOARD_INFO("rtc-pcf8563", 0x51), | ||
| 46 | }, | ||
| 47 | }; | ||
| 48 | |||
| 42 | #ifdef CONFIG_LEDS_IXP4XX | 49 | #ifdef CONFIG_LEDS_IXP4XX |
| 43 | static struct resource nas100d_led_resources[] = { | 50 | static struct resource nas100d_led_resources[] = { |
| 44 | { | 51 | { |
| @@ -157,6 +164,9 @@ static void __init nas100d_init(void) | |||
| 157 | 164 | ||
| 158 | pm_power_off = nas100d_power_off; | 165 | pm_power_off = nas100d_power_off; |
| 159 | 166 | ||
| 167 | i2c_register_board_info(0, nas100d_i2c_board_info, | ||
| 168 | ARRAY_SIZE(nas100d_i2c_board_info)); | ||
| 169 | |||
| 160 | /* | 170 | /* |
| 161 | * This is only useful on a modified machine, but it is valuable | 171 | * This is only useful on a modified machine, but it is valuable |
| 162 | * to have it first in order to see debug messages, and so that | 172 | * to have it first in order to see debug messages, and so that |
