Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 11233
b: refs/heads/master
c: 0c9ec46
h: refs/heads/master
i:
  11231: 8f18da4
v: v3
  • Loading branch information
Pete Popov authored and Ralf Baechle committed Oct 29, 2005
1 parent acee787 commit d4dc97c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ba264b340396b8dd7348ef8531e5ac003a34ff4e
refs/heads/master: 0c9ec467db8bf9ae9a337b96cecd9b6b703b57a1
28 changes: 28 additions & 0 deletions trunk/arch/mips/au1000/common/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,31 @@ static struct platform_device au1x00_pcmcia_device = {
.id = 0,
};

#ifdef CONFIG_MIPS_DB1200

static struct resource smc91x_resources[] = {
[0] = {
.name = "smc91x-regs",
.start = AU1XXX_SMC91111_PHYS_ADDR,
.end = AU1XXX_SMC91111_PHYS_ADDR + 0xfffff,
.flags = IORESOURCE_MEM,
},
[1] = {
.start = AU1XXX_SMC91111_IRQ,
.end = AU1XXX_SMC91111_IRQ,
.flags = IORESOURCE_IRQ,
},
};

static struct platform_device smc91x_device = {
.name = "smc91x",
.id = -1,
.num_resources = ARRAY_SIZE(smc91x_resources),
.resource = smc91x_resources,
};

#endif

static struct platform_device *au1xxx_platform_devices[] __initdata = {
&au1xxx_usb_ohci_device,
&au1x00_pcmcia_device,
Expand All @@ -261,6 +286,9 @@ static struct platform_device *au1xxx_platform_devices[] __initdata = {
&au1200_ide0_device,
&au1xxx_mmc_device,
#endif
#ifdef CONFIG_MIPS_DB1200
&smc91x_device,
#endif
};

int au1xxx_platform_init(void)
Expand Down

0 comments on commit d4dc97c

Please sign in to comment.