Skip to content

Commit

Permalink
[ARM] 3646/1: ep93xx: instantiate ep93xx-ohci platform device
Browse files Browse the repository at this point in the history
Patch from Lennert Buytenhek

The ep93xx ohci bits have been merged into the gregkh-2.6 tree, which
means that they will probably go upstream soon, so make the core ep93xx
code instantiate an appropriate ep93xx-ohci platform device.

Signed-off-by: Lennert Buytenhek <[email protected]>
Signed-off-by: Russell King <[email protected]>
  • Loading branch information
buytenh authored and Russell King committed Jun 24, 2006
1 parent 1d81eed commit 1f64eb3
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions arch/arm/mach-ep93xx/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,31 @@ static struct platform_device ep93xx_rtc_device = {
};


static struct resource ep93xx_ohci_resources[] = {
[0] = {
.start = EP93XX_USB_PHYS_BASE,
.end = EP93XX_USB_PHYS_BASE + 0x0fff,
.flags = IORESOURCE_MEM,
},
[1] = {
.start = IRQ_EP93XX_USB,
.end = IRQ_EP93XX_USB,
.flags = IORESOURCE_IRQ,
},
};

static struct platform_device ep93xx_ohci_device = {
.name = "ep93xx-ohci",
.id = -1,
.dev = {
.dma_mask = (void *)0xffffffff,
.coherent_dma_mask = 0xffffffff,
},
.num_resources = ARRAY_SIZE(ep93xx_ohci_resources),
.resource = ep93xx_ohci_resources,
};


void __init ep93xx_init_devices(void)
{
unsigned int v;
Expand All @@ -452,4 +477,5 @@ void __init ep93xx_init_devices(void)
amba_device_register(&uart3_device, &iomem_resource);

platform_device_register(&ep93xx_rtc_device);
platform_device_register(&ep93xx_ohci_device);
}

0 comments on commit 1f64eb3

Please sign in to comment.