[ARM] 4865/1: Register the F75375 device in the GLAN Tank platform code
authorGordon Farquharson <gordonfarquharson@gmail.com>
Fri, 14 Mar 2008 03:07:46 +0000 (04:07 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 20 Mar 2008 15:59:30 +0000 (15:59 +0000)
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>
arch/arm/mach-iop32x/glantank.c

index 74c65ce221dee74ab6aca8b467a42e12241af4e1..d2a7b04f1cb0764c51f7238d19385615b992bc29 100644 (file)
 
 #include <linux/mm.h>
 #include <linux/init.h>
+#include <linux/f75375s.h>
 #include <linux/kernel.h>
 #include <linux/pci.h>
+#include <linux/pm.h>
 #include <linux/string.h>
 #include <linux/slab.h>
 #include <linux/serial_core.h>
@@ -167,11 +169,21 @@ static struct platform_device glantank_serial_device = {
        .resource       = &glantank_uart_resource,
 };
 
+static struct f75375s_platform_data glantank_f75375s = {
+       .pwm            = { 255, 255 },
+       .pwm_enable     = { 0, 0 },
+};
+
 static struct i2c_board_info __initdata glantank_i2c_devices[] = {
        {
                I2C_BOARD_INFO("rtc-rs5c372", 0x32),
                .type = "rs5c372a",
        },
+       {
+               I2C_BOARD_INFO("f75375", 0x2e),
+               .type = "f75375",
+               .platform_data = &glantank_f75375s,
+       },
 };
 
 static void glantank_power_off(void)