diff options
Diffstat (limited to 'arch/arm/mach-iop32x/glantank.c')
-rw-r--r-- | arch/arm/mach-iop32x/glantank.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/arch/arm/mach-iop32x/glantank.c b/arch/arm/mach-iop32x/glantank.c index 2b086ab2668c..74c65ce221de 100644 --- a/arch/arm/mach-iop32x/glantank.c +++ b/arch/arm/mach-iop32x/glantank.c | |||
@@ -3,7 +3,7 @@ | |||
3 | * | 3 | * |
4 | * Board support code for the GLAN Tank. | 4 | * Board support code for the GLAN Tank. |
5 | * | 5 | * |
6 | * Copyright (C) 2006 Martin Michlmayr <tbm@cyrius.com> | 6 | * Copyright (C) 2006, 2007 Martin Michlmayr <tbm@cyrius.com> |
7 | * Copyright (C) 2006 Lennert Buytenhek <buytenh@wantstofly.org> | 7 | * Copyright (C) 2006 Lennert Buytenhek <buytenh@wantstofly.org> |
8 | * | 8 | * |
9 | * This program is free software; you can redistribute it and/or modify it | 9 | * This program is free software; you can redistribute it and/or modify it |
@@ -21,6 +21,7 @@ | |||
21 | #include <linux/serial_core.h> | 21 | #include <linux/serial_core.h> |
22 | #include <linux/serial_8250.h> | 22 | #include <linux/serial_8250.h> |
23 | #include <linux/mtd/physmap.h> | 23 | #include <linux/mtd/physmap.h> |
24 | #include <linux/i2c.h> | ||
24 | #include <linux/platform_device.h> | 25 | #include <linux/platform_device.h> |
25 | #include <asm/hardware.h> | 26 | #include <asm/hardware.h> |
26 | #include <asm/io.h> | 27 | #include <asm/io.h> |
@@ -118,7 +119,7 @@ subsys_initcall(glantank_pci_init); | |||
118 | * GLAN Tank machine initialization. | 119 | * GLAN Tank machine initialization. |
119 | */ | 120 | */ |
120 | static struct physmap_flash_data glantank_flash_data = { | 121 | static struct physmap_flash_data glantank_flash_data = { |
121 | .width = 1, | 122 | .width = 2, |
122 | }; | 123 | }; |
123 | 124 | ||
124 | static struct resource glantank_flash_resource = { | 125 | static struct resource glantank_flash_resource = { |
@@ -166,6 +167,13 @@ static struct platform_device glantank_serial_device = { | |||
166 | .resource = &glantank_uart_resource, | 167 | .resource = &glantank_uart_resource, |
167 | }; | 168 | }; |
168 | 169 | ||
170 | static struct i2c_board_info __initdata glantank_i2c_devices[] = { | ||
171 | { | ||
172 | I2C_BOARD_INFO("rtc-rs5c372", 0x32), | ||
173 | .type = "rs5c372a", | ||
174 | }, | ||
175 | }; | ||
176 | |||
169 | static void glantank_power_off(void) | 177 | static void glantank_power_off(void) |
170 | { | 178 | { |
171 | __raw_writeb(0x01, 0xfe8d0004); | 179 | __raw_writeb(0x01, 0xfe8d0004); |
@@ -183,6 +191,9 @@ static void __init glantank_init_machine(void) | |||
183 | platform_device_register(&iop3xx_dma_0_channel); | 191 | platform_device_register(&iop3xx_dma_0_channel); |
184 | platform_device_register(&iop3xx_dma_1_channel); | 192 | platform_device_register(&iop3xx_dma_1_channel); |
185 | 193 | ||
194 | i2c_register_board_info(0, glantank_i2c_devices, | ||
195 | ARRAY_SIZE(glantank_i2c_devices)); | ||
196 | |||
186 | pm_power_off = glantank_power_off; | 197 | pm_power_off = glantank_power_off; |
187 | } | 198 | } |
188 | 199 | ||