Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 163196
b: refs/heads/master
c: efd9118
h: refs/heads/master
v: v3
  • Loading branch information
Sergei Shtylyov authored and Kevin Hilman committed Aug 26, 2009
1 parent ce18dcc commit a140622
Show file tree
Hide file tree
Showing 2 changed files with 14 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: c96b56c53fb76c540a1a8103c7594859db4351dd
refs/heads/master: efd911814e303e00e6ed44e747b113a8644efede
13 changes: 13 additions & 0 deletions trunk/arch/arm/mach-davinci/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <mach/common.h>
#include <mach/hardware.h>
#include <mach/irqs.h>
#include <mach/cputype.h>

#define DAVINCI_USB_OTG_BASE 0x01C64000

Expand Down Expand Up @@ -64,6 +65,10 @@ static struct resource usb_resources[] = {
.start = IRQ_USBINT,
.flags = IORESOURCE_IRQ,
},
{
/* placeholder for the dedicated CPPI IRQ */
.flags = IORESOURCE_IRQ,
},
};

static u64 usb_dmamask = DMA_BIT_MASK(32);
Expand All @@ -84,6 +89,14 @@ void __init setup_usb(unsigned mA, unsigned potpgt_msec)
{
usb_data.power = mA / 2;
usb_data.potpgt = potpgt_msec / 2;

if (cpu_is_davinci_dm646x()) {
/* Override the defaults as DM6467 uses different IRQs. */
usb_dev.resource[1].start = IRQ_DM646X_USBINT;
usb_dev.resource[2].start = IRQ_DM646X_USBDMAINT;
} else /* other devices don't have dedicated CPPI IRQ */
usb_dev.num_resources = 2;

platform_device_register(&usb_dev);
}

Expand Down

0 comments on commit a140622

Please sign in to comment.