aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/au1000
diff options
context:
space:
mode:
authorPete Popov <ppopov@embeddedalley.com>2005-09-21 17:39:44 -0400
committerRalf Baechle <ralf@linux-mips.org>2005-10-29 14:32:27 -0400
commit0c9ec467db8bf9ae9a337b96cecd9b6b703b57a1 (patch)
tree38fa95aad7c643ef568a365364f11a489cdb5995 /arch/mips/au1000
parentba264b340396b8dd7348ef8531e5ac003a34ff4e (diff)
smc91x platform support; requires patch to smc91x.h which was sent
upstream. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/au1000')
-rw-r--r--arch/mips/au1000/common/platform.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/mips/au1000/common/platform.c b/arch/mips/au1000/common/platform.c
index efb00fc5640e..1f7b465c8038 100644
--- a/arch/mips/au1000/common/platform.c
+++ b/arch/mips/au1000/common/platform.c
@@ -245,6 +245,31 @@ static struct platform_device au1x00_pcmcia_device = {
245 .id = 0, 245 .id = 0,
246}; 246};
247 247
248#ifdef CONFIG_MIPS_DB1200
249
250static struct resource smc91x_resources[] = {
251 [0] = {
252 .name = "smc91x-regs",
253 .start = AU1XXX_SMC91111_PHYS_ADDR,
254 .end = AU1XXX_SMC91111_PHYS_ADDR + 0xfffff,
255 .flags = IORESOURCE_MEM,
256 },
257 [1] = {
258 .start = AU1XXX_SMC91111_IRQ,
259 .end = AU1XXX_SMC91111_IRQ,
260 .flags = IORESOURCE_IRQ,
261 },
262};
263
264static struct platform_device smc91x_device = {
265 .name = "smc91x",
266 .id = -1,
267 .num_resources = ARRAY_SIZE(smc91x_resources),
268 .resource = smc91x_resources,
269};
270
271#endif
272
248static struct platform_device *au1xxx_platform_devices[] __initdata = { 273static struct platform_device *au1xxx_platform_devices[] __initdata = {
249 &au1xxx_usb_ohci_device, 274 &au1xxx_usb_ohci_device,
250 &au1x00_pcmcia_device, 275 &au1x00_pcmcia_device,
@@ -261,6 +286,9 @@ static struct platform_device *au1xxx_platform_devices[] __initdata = {
261 &au1200_ide0_device, 286 &au1200_ide0_device,
262 &au1xxx_mmc_device, 287 &au1xxx_mmc_device,
263#endif 288#endif
289#ifdef CONFIG_MIPS_DB1200
290 &smc91x_device,
291#endif
264}; 292};
265 293
266int au1xxx_platform_init(void) 294int au1xxx_platform_init(void)