@@ -659,6 +659,54 @@ static struct platform_device spi0_device = {
659659 .resource = spi0_resources ,
660660};
661661
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+
662710static struct platform_device * sh7757_devices [] __initdata = {
663711 & scif2_device ,
664712 & scif3_device ,
@@ -670,6 +718,8 @@ static struct platform_device *sh7757_devices[] __initdata = {
670718 & dma2_device ,
671719 & dma3_device ,
672720 & spi0_device ,
721+ & usb_ehci_device ,
722+ & usb_ohci_device ,
673723};
674724
675725static int __init sh7757_devices_setup (void )
0 commit comments