diff options
| author | Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> | 2011-06-21 04:28:27 -0400 |
|---|---|---|
| committer | Paul Mundt <lethal@linux-sh.org> | 2011-06-21 04:40:49 -0400 |
| commit | f2b9726105824fdeea32a339e5072a358f89a25b (patch) | |
| tree | 96c6b3f01bdf62480aa75338b0716612919d0a3e | |
| parent | bf69d8484cbba2a59dd73cdd20b8d5e79cedce1f (diff) | |
sh: add platform_device of EHCI/OHCI to setup-sh7757
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
| -rw-r--r-- | arch/sh/kernel/cpu/sh4a/setup-sh7757.c | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7757.c b/arch/sh/kernel/cpu/sh4a/setup-sh7757.c index 423dabf542d3..717a76b399b1 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7757.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7757.c | |||
| @@ -659,6 +659,54 @@ static struct platform_device spi0_device = { | |||
| 659 | .resource = spi0_resources, | 659 | .resource = spi0_resources, |
| 660 | }; | 660 | }; |
| 661 | 661 | ||
| 662 | static struct resource usb_ehci_resources[] = { | ||
| 663 | [0] = { | ||
| 664 | .start = 0xfe4f1000, | ||
| 665 | .end = 0xfe4f10ff, | ||
| 666 | .flags = IORESOURCE_MEM, | ||
| 667 | }, | ||
| 668 | [1] = { | ||
| 669 | .start = 57, | ||
| 670 | .end = 57, | ||
| 671 | .flags = IORESOURCE_IRQ, | ||
| 672 | }, | ||
| 673 | }; | ||
| 674 | |||
| 675 | static struct platform_device usb_ehci_device = { | ||
| 676 | .name = "sh_ehci", | ||
| 677 | .id = -1, | ||
| 678 | .dev = { | ||
| 679 | .dma_mask = &usb_ehci_device.dev.coherent_dma_mask, | ||
| 680 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
| 681 | }, | ||
| 682 | .num_resources = ARRAY_SIZE(usb_ehci_resources), | ||
| 683 | .resource = usb_ehci_resources, | ||
| 684 | }; | ||
| 685 | |||
| 686 | static struct resource usb_ohci_resources[] = { | ||
| 687 | [0] = { | ||
| 688 | .start = 0xfe4f1800, | ||
| 689 | .end = 0xfe4f18ff, | ||
| 690 | .flags = IORESOURCE_MEM, | ||
| 691 | }, | ||
| 692 | [1] = { | ||
| 693 | .start = 57, | ||
| 694 | .end = 57, | ||
| 695 | .flags = IORESOURCE_IRQ, | ||
| 696 | }, | ||
| 697 | }; | ||
| 698 | |||
| 699 | static struct platform_device usb_ohci_device = { | ||
| 700 | .name = "sh_ohci", | ||
| 701 | .id = -1, | ||
| 702 | .dev = { | ||
| 703 | .dma_mask = &usb_ohci_device.dev.coherent_dma_mask, | ||
| 704 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
| 705 | }, | ||
| 706 | .num_resources = ARRAY_SIZE(usb_ohci_resources), | ||
| 707 | .resource = usb_ohci_resources, | ||
| 708 | }; | ||
| 709 | |||
| 662 | static struct platform_device *sh7757_devices[] __initdata = { | 710 | static struct platform_device *sh7757_devices[] __initdata = { |
| 663 | &scif2_device, | 711 | &scif2_device, |
| 664 | &scif3_device, | 712 | &scif3_device, |
| @@ -670,6 +718,8 @@ static struct platform_device *sh7757_devices[] __initdata = { | |||
| 670 | &dma2_device, | 718 | &dma2_device, |
| 671 | &dma3_device, | 719 | &dma3_device, |
| 672 | &spi0_device, | 720 | &spi0_device, |
| 721 | &usb_ehci_device, | ||
| 722 | &usb_ohci_device, | ||
| 673 | }; | 723 | }; |
| 674 | 724 | ||
| 675 | static int __init sh7757_devices_setup(void) | 725 | static int __init sh7757_devices_setup(void) |
