2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
6 * Copyright (C) 2007-2011 MIPS Technologies, Inc.
7 * written by Ralf Baechle (ralf@linux-mips.org)
9 * Probe driver for the SEAD3 network device
12 #include <linux/module.h>
13 #include <linux/init.h>
14 #include <linux/platform_device.h>
15 #include <linux/smsc911x.h>
18 static struct smsc911x_platform_config net_data
= {
19 .irq_polarity
= SMSC911X_IRQ_POLARITY_ACTIVE_LOW
,
20 .irq_type
= SMSC911X_IRQ_TYPE_PUSH_PULL
,
21 .flags
= SMSC911X_USE_32BIT
| SMSC911X_SAVE_MAC_ADDRESS
,
22 .phy_interface
= PHY_INTERFACE_MODE_MII
,
25 struct resource net_resources
[] = {
29 .flags
= IORESOURCE_MEM
32 .start
= MIPS_CPU_IRQ_BASE
+ 6,
33 .flags
= IORESOURCE_IRQ
37 static struct platform_device net_device
= {
41 .platform_data
= &net_data
,
43 .num_resources
= ARRAY_SIZE(net_resources
),
44 .resource
= net_resources
47 static int __init
net_init(void)
49 return platform_device_register(&net_device
);
52 module_init(net_init
);
54 MODULE_AUTHOR("Chris Dearman <chris@mips.com>");
55 MODULE_LICENSE("GPL");
56 MODULE_DESCRIPTION("Network probe driver for SEAD3");