block: move down direct IO plugging
[linux/fpc-iii.git] / arch / arm / mach-exynos / dev-ohci.c
blobb8e75300c77d83883970d6d621a85e358c294a7d
1 /* linux/arch/arm/mach-exynos/dev-ohci.c
3 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
4 * http://www.samsung.com
6 * EXYNOS - OHCI support
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
13 #include <linux/dma-mapping.h>
14 #include <linux/platform_device.h>
16 #include <mach/irqs.h>
17 #include <mach/map.h>
18 #include <mach/ohci.h>
20 #include <plat/devs.h>
21 #include <plat/usb-phy.h>
23 static struct resource exynos4_ohci_resource[] = {
24 [0] = DEFINE_RES_MEM(EXYNOS4_PA_OHCI, SZ_256),
25 [1] = DEFINE_RES_IRQ(IRQ_USB_HOST),
28 static u64 exynos4_ohci_dma_mask = DMA_BIT_MASK(32);
30 struct platform_device exynos4_device_ohci = {
31 .name = "exynos-ohci",
32 .id = -1,
33 .num_resources = ARRAY_SIZE(exynos4_ohci_resource),
34 .resource = exynos4_ohci_resource,
35 .dev = {
36 .dma_mask = &exynos4_ohci_dma_mask,
37 .coherent_dma_mask = DMA_BIT_MASK(32),
41 void __init exynos4_ohci_set_platdata(struct exynos4_ohci_platdata *pd)
43 struct exynos4_ohci_platdata *npd;
45 npd = s3c_set_platdata(pd, sizeof(struct exynos4_ohci_platdata),
46 &exynos4_device_ohci);
48 if (!npd->phy_init)
49 npd->phy_init = s5p_usb_phy_init;
50 if (!npd->phy_exit)
51 npd->phy_exit = s5p_usb_phy_exit;