4 * Copyright (C) 2012 Renesas Electronics Europe Ltd
5 * Copyright (C) 2012 Phil Edworthy
7 * This file is subject to the terms and conditions of the GNU General Public
8 * License. See the file "COPYING" in the main directory of this archive
11 #include <linux/init.h>
12 #include <linux/types.h>
13 #include <linux/platform_device.h>
14 #include <linux/interrupt.h>
15 #include <linux/input.h>
16 #include <linux/smsc911x.h>
17 #include <linux/gpio.h>
18 #include <asm/machvec.h>
21 static struct smsc911x_platform_config smsc911x_config
= {
22 .phy_interface
= PHY_INTERFACE_MODE_MII
,
23 .irq_polarity
= SMSC911X_IRQ_POLARITY_ACTIVE_LOW
,
24 .irq_type
= SMSC911X_IRQ_TYPE_PUSH_PULL
,
25 .flags
= SMSC911X_USE_16BIT
| SMSC911X_SWAP_FIFO
,
28 static struct resource smsc911x_resources
[] = {
32 .flags
= IORESOURCE_MEM
,
37 .flags
= IORESOURCE_IRQ
,
41 static struct platform_device smsc911x_device
= {
44 .num_resources
= ARRAY_SIZE(smsc911x_resources
),
45 .resource
= smsc911x_resources
,
47 .platform_data
= &smsc911x_config
,
51 static struct platform_device
*rsk7269_devices
[] __initdata
= {
55 static int __init
rsk7269_devices_setup(void)
57 return platform_add_devices(rsk7269_devices
,
58 ARRAY_SIZE(rsk7269_devices
));
60 device_initcall(rsk7269_devices_setup
);