aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-ixp4xx/dsmg600-setup.c10
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 c473d408aa7c..a1c44efc45f6 100644
--- a/arch/arm/mach-ixp4xx/dsmg600-setup.c
+++ b/arch/arm/mach-ixp4xx/dsmg600-setup.c
@@ -14,6 +14,7 @@
14#include <linux/kernel.h> 14#include <linux/kernel.h>
15#include <linux/serial.h> 15#include <linux/serial.h>
16#include <linux/serial_8250.h> 16#include <linux/serial_8250.h>
17#include <linux/i2c.h>
17#include <linux/i2c-gpio.h> 18#include <linux/i2c-gpio.h>
18 19
19#include <asm/mach-types.h> 20#include <asm/mach-types.h>
@@ -51,6 +52,12 @@ static struct platform_device dsmg600_i2c_gpio = {
51 }, 52 },
52}; 53};
53 54
55static struct i2c_board_info __initdata dsmg600_i2c_board_info [] = {
56 {
57 I2C_BOARD_INFO("rtc-pcf8563", 0x51),
58 },
59};
60
54#ifdef CONFIG_LEDS_CLASS 61#ifdef CONFIG_LEDS_CLASS
55static struct resource dsmg600_led_resources[] = { 62static struct resource dsmg600_led_resources[] = {
56 { 63 {
@@ -158,6 +165,9 @@ static void __init dsmg600_init(void)
158 165
159 pm_power_off = dsmg600_power_off; 166 pm_power_off = dsmg600_power_off;
160 167
168 i2c_register_board_info(0, dsmg600_i2c_board_info,
169 ARRAY_SIZE(dsmg600_i2c_board_info));
170
161 /* The UART is required on the DSM-G600 (Redboot cannot use the 171 /* The UART is required on the DSM-G600 (Redboot cannot use the
162 * NIC) -- do it here so that it does *not* get removed if 172 * NIC) -- do it here so that it does *not* get removed if
163 * platform_add_devices fails! 173 * platform_add_devices fails!