diff options
author | Gordon Farquharson <gordonfarquharson@gmail.com> | 2008-03-13 23:07:46 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-03-20 11:59:30 -0400 |
commit | 4e7ffb6ab4c42740eaf8b8d905e95f106d9eb022 (patch) | |
tree | 595ae233cb47f7d33a7a69a7d15f074ff9957200 /arch | |
parent | 391c569daa6e4e999592966e29c146dfc4de9a9c (diff) |
[ARM] 4865/1: Register the F75375 device in the GLAN Tank platform code
This patch adds the code required to register the F75375 device on the
GLAN Tank.
Signed-off-by: Gordon Farquharson <gordonfarquharson@gmail.com>
Acked-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-iop32x/glantank.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-iop32x/glantank.c b/arch/arm/mach-iop32x/glantank.c index 74c65ce221de..d2a7b04f1cb0 100644 --- a/arch/arm/mach-iop32x/glantank.c +++ b/arch/arm/mach-iop32x/glantank.c | |||
@@ -14,8 +14,10 @@ | |||
14 | 14 | ||
15 | #include <linux/mm.h> | 15 | #include <linux/mm.h> |
16 | #include <linux/init.h> | 16 | #include <linux/init.h> |
17 | #include <linux/f75375s.h> | ||
17 | #include <linux/kernel.h> | 18 | #include <linux/kernel.h> |
18 | #include <linux/pci.h> | 19 | #include <linux/pci.h> |
20 | #include <linux/pm.h> | ||
19 | #include <linux/string.h> | 21 | #include <linux/string.h> |
20 | #include <linux/slab.h> | 22 | #include <linux/slab.h> |
21 | #include <linux/serial_core.h> | 23 | #include <linux/serial_core.h> |
@@ -167,11 +169,21 @@ static struct platform_device glantank_serial_device = { | |||
167 | .resource = &glantank_uart_resource, | 169 | .resource = &glantank_uart_resource, |
168 | }; | 170 | }; |
169 | 171 | ||
172 | static struct f75375s_platform_data glantank_f75375s = { | ||
173 | .pwm = { 255, 255 }, | ||
174 | .pwm_enable = { 0, 0 }, | ||
175 | }; | ||
176 | |||
170 | static struct i2c_board_info __initdata glantank_i2c_devices[] = { | 177 | static struct i2c_board_info __initdata glantank_i2c_devices[] = { |
171 | { | 178 | { |
172 | I2C_BOARD_INFO("rtc-rs5c372", 0x32), | 179 | I2C_BOARD_INFO("rtc-rs5c372", 0x32), |
173 | .type = "rs5c372a", | 180 | .type = "rs5c372a", |
174 | }, | 181 | }, |
182 | { | ||
183 | I2C_BOARD_INFO("f75375", 0x2e), | ||
184 | .type = "f75375", | ||
185 | .platform_data = &glantank_f75375s, | ||
186 | }, | ||
175 | }; | 187 | }; |
176 | 188 | ||
177 | static void glantank_power_off(void) | 189 | static void glantank_power_off(void) |