Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Gordon Farquharson and committed by
Russell King
4e7ffb6a 391c569d

+12
+12
arch/arm/mach-iop32x/glantank.c
··· 14 14 15 15 #include <linux/mm.h> 16 16 #include <linux/init.h> 17 + #include <linux/f75375s.h> 17 18 #include <linux/kernel.h> 18 19 #include <linux/pci.h> 20 + #include <linux/pm.h> 19 21 #include <linux/string.h> 20 22 #include <linux/slab.h> 21 23 #include <linux/serial_core.h> ··· 169 167 .resource = &glantank_uart_resource, 170 168 }; 171 169 170 + static struct f75375s_platform_data glantank_f75375s = { 171 + .pwm = { 255, 255 }, 172 + .pwm_enable = { 0, 0 }, 173 + }; 174 + 172 175 static struct i2c_board_info __initdata glantank_i2c_devices[] = { 173 176 { 174 177 I2C_BOARD_INFO("rtc-rs5c372", 0x32), 175 178 .type = "rs5c372a", 179 + }, 180 + { 181 + I2C_BOARD_INFO("f75375", 0x2e), 182 + .type = "f75375", 183 + .platform_data = &glantank_f75375s, 176 184 }, 177 185 }; 178 186