diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2009-04-17 10:52:25 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2009-08-14 06:41:01 -0400 |
commit | 7bc07ebc7d2e9ad57baf205840ce31e9243ed5e8 (patch) | |
tree | 051fe744b671a3a717e4b7059fa9eabde3b56a6a /arch/arm/mach-mx3/devices.c | |
parent | 337316986f0531e1681c409de9b73af0bc6dc7bb (diff) |
mx3x: Fixup USB base addresses
The i.MX31 and the i.MX35 have different USB base addresses. Adjust
the resources accordingly.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3/devices.c')
-rw-r--r-- | arch/arm/mach-mx3/devices.c | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/arch/arm/mach-mx3/devices.c b/arch/arm/mach-mx3/devices.c index cde1b0792421..8a577f367250 100644 --- a/arch/arm/mach-mx3/devices.c +++ b/arch/arm/mach-mx3/devices.c | |||
@@ -366,8 +366,8 @@ struct platform_device mx3_camera = { | |||
366 | 366 | ||
367 | static struct resource otg_resources[] = { | 367 | static struct resource otg_resources[] = { |
368 | { | 368 | { |
369 | .start = OTG_BASE_ADDR, | 369 | .start = MX31_OTG_BASE_ADDR, |
370 | .end = OTG_BASE_ADDR + 0x1ff, | 370 | .end = MX31_OTG_BASE_ADDR + 0x1ff, |
371 | .flags = IORESOURCE_MEM, | 371 | .flags = IORESOURCE_MEM, |
372 | }, { | 372 | }, { |
373 | .start = MXC_INT_USB3, | 373 | .start = MXC_INT_USB3, |
@@ -408,8 +408,8 @@ static u64 usbh1_dmamask = ~(u32)0; | |||
408 | 408 | ||
409 | static struct resource mxc_usbh1_resources[] = { | 409 | static struct resource mxc_usbh1_resources[] = { |
410 | { | 410 | { |
411 | .start = OTG_BASE_ADDR + 0x200, | 411 | .start = MX31_OTG_BASE_ADDR + 0x200, |
412 | .end = OTG_BASE_ADDR + 0x3ff, | 412 | .end = MX31_OTG_BASE_ADDR + 0x3ff, |
413 | .flags = IORESOURCE_MEM, | 413 | .flags = IORESOURCE_MEM, |
414 | }, { | 414 | }, { |
415 | .start = MXC_INT_USB1, | 415 | .start = MXC_INT_USB1, |
@@ -434,8 +434,8 @@ static u64 usbh2_dmamask = ~(u32)0; | |||
434 | 434 | ||
435 | static struct resource mxc_usbh2_resources[] = { | 435 | static struct resource mxc_usbh2_resources[] = { |
436 | { | 436 | { |
437 | .start = OTG_BASE_ADDR + 0x400, | 437 | .start = MX31_OTG_BASE_ADDR + 0x400, |
438 | .end = OTG_BASE_ADDR + 0x5ff, | 438 | .end = MX31_OTG_BASE_ADDR + 0x5ff, |
439 | .flags = IORESOURCE_MEM, | 439 | .flags = IORESOURCE_MEM, |
440 | }, { | 440 | }, { |
441 | .start = MXC_INT_USB2, | 441 | .start = MXC_INT_USB2, |
@@ -547,6 +547,14 @@ static int mx3_devices_init(void) | |||
547 | if (cpu_is_mx35()) { | 547 | if (cpu_is_mx35()) { |
548 | mxc_nand_resources[0].start = MX35_NFC_BASE_ADDR; | 548 | mxc_nand_resources[0].start = MX35_NFC_BASE_ADDR; |
549 | mxc_nand_resources[0].end = MX35_NFC_BASE_ADDR + 0xfff; | 549 | mxc_nand_resources[0].end = MX35_NFC_BASE_ADDR + 0xfff; |
550 | otg_resources[0].start = MX35_OTG_BASE_ADDR; | ||
551 | otg_resources[0].end = MX35_OTG_BASE_ADDR + 0x1ff; | ||
552 | otg_resources[1].start = MXC_INT_USBOTG; | ||
553 | otg_resources[1].end = MXC_INT_USBOTG; | ||
554 | mxc_usbh1_resources[0].start = MX35_OTG_BASE_ADDR + 0x400; | ||
555 | mxc_usbh1_resources[0].end = MX35_OTG_BASE_ADDR + 0x5ff; | ||
556 | mxc_usbh1_resources[1].start = MXC_INT_USBHS; | ||
557 | mxc_usbh1_resources[1].end = MXC_INT_USBHS; | ||
550 | } | 558 | } |
551 | 559 | ||
552 | return 0; | 560 | return 0; |