diff options
Diffstat (limited to 'arch/arm/plat-samsung/devs.c')
-rw-r--r-- | arch/arm/plat-samsung/devs.c | 39 |
1 files changed, 4 insertions, 35 deletions
diff --git a/arch/arm/plat-samsung/devs.c b/arch/arm/plat-samsung/devs.c index 8ce0ac007eb9..99a3590f0349 100644 --- a/arch/arm/plat-samsung/devs.c +++ b/arch/arm/plat-samsung/devs.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <linux/ioport.h> | 32 | #include <linux/ioport.h> |
33 | #include <linux/platform_data/s3c-hsudc.h> | 33 | #include <linux/platform_data/s3c-hsudc.h> |
34 | #include <linux/platform_data/s3c-hsotg.h> | 34 | #include <linux/platform_data/s3c-hsotg.h> |
35 | #include <linux/platform_data/dma-s3c24xx.h> | ||
35 | 36 | ||
36 | #include <media/s5p_hdmi.h> | 37 | #include <media/s5p_hdmi.h> |
37 | 38 | ||
@@ -49,7 +50,6 @@ | |||
49 | #include <plat/devs.h> | 50 | #include <plat/devs.h> |
50 | #include <plat/adc.h> | 51 | #include <plat/adc.h> |
51 | #include <linux/platform_data/ata-samsung_cf.h> | 52 | #include <linux/platform_data/ata-samsung_cf.h> |
52 | #include <linux/platform_data/usb-ehci-s5p.h> | ||
53 | #include <plat/fb.h> | 53 | #include <plat/fb.h> |
54 | #include <plat/fb-s3c2410.h> | 54 | #include <plat/fb-s3c2410.h> |
55 | #include <plat/hdmi.h> | 55 | #include <plat/hdmi.h> |
@@ -1359,39 +1359,6 @@ void __init s3c24xx_udc_set_platdata(struct s3c2410_udc_mach_info *pd) | |||
1359 | } | 1359 | } |
1360 | #endif /* CONFIG_PLAT_S3C24XX */ | 1360 | #endif /* CONFIG_PLAT_S3C24XX */ |
1361 | 1361 | ||
1362 | /* USB EHCI Host Controller */ | ||
1363 | |||
1364 | #ifdef CONFIG_S5P_DEV_USB_EHCI | ||
1365 | static struct resource s5p_ehci_resource[] = { | ||
1366 | [0] = DEFINE_RES_MEM(S5P_PA_EHCI, SZ_256), | ||
1367 | [1] = DEFINE_RES_IRQ(IRQ_USB_HOST), | ||
1368 | }; | ||
1369 | |||
1370 | struct platform_device s5p_device_ehci = { | ||
1371 | .name = "s5p-ehci", | ||
1372 | .id = -1, | ||
1373 | .num_resources = ARRAY_SIZE(s5p_ehci_resource), | ||
1374 | .resource = s5p_ehci_resource, | ||
1375 | .dev = { | ||
1376 | .dma_mask = &samsung_device_dma_mask, | ||
1377 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
1378 | } | ||
1379 | }; | ||
1380 | |||
1381 | void __init s5p_ehci_set_platdata(struct s5p_ehci_platdata *pd) | ||
1382 | { | ||
1383 | struct s5p_ehci_platdata *npd; | ||
1384 | |||
1385 | npd = s3c_set_platdata(pd, sizeof(struct s5p_ehci_platdata), | ||
1386 | &s5p_device_ehci); | ||
1387 | |||
1388 | if (!npd->phy_init) | ||
1389 | npd->phy_init = s5p_usb_phy_init; | ||
1390 | if (!npd->phy_exit) | ||
1391 | npd->phy_exit = s5p_usb_phy_exit; | ||
1392 | } | ||
1393 | #endif /* CONFIG_S5P_DEV_USB_EHCI */ | ||
1394 | |||
1395 | /* USB HSOTG */ | 1362 | /* USB HSOTG */ |
1396 | 1363 | ||
1397 | #ifdef CONFIG_S3C_DEV_USB_HSOTG | 1364 | #ifdef CONFIG_S3C_DEV_USB_HSOTG |
@@ -1499,8 +1466,10 @@ void __init s3c64xx_spi0_set_platdata(int (*cfg_gpio)(void), int src_clk_nr, | |||
1499 | pd.num_cs = num_cs; | 1466 | pd.num_cs = num_cs; |
1500 | pd.src_clk_nr = src_clk_nr; | 1467 | pd.src_clk_nr = src_clk_nr; |
1501 | pd.cfg_gpio = (cfg_gpio) ? cfg_gpio : s3c64xx_spi0_cfg_gpio; | 1468 | pd.cfg_gpio = (cfg_gpio) ? cfg_gpio : s3c64xx_spi0_cfg_gpio; |
1502 | #ifdef CONFIG_PL330_DMA | 1469 | #if defined(CONFIG_PL330_DMA) |
1503 | pd.filter = pl330_filter; | 1470 | pd.filter = pl330_filter; |
1471 | #elif defined(CONFIG_S3C24XX_DMAC) | ||
1472 | pd.filter = s3c24xx_dma_filter; | ||
1504 | #endif | 1473 | #endif |
1505 | 1474 | ||
1506 | s3c_set_platdata(&pd, sizeof(pd), &s3c64xx_device_spi0); | 1475 | s3c_set_platdata(&pd, sizeof(pd), &s3c64xx_device_spi0); |