diff options
author | Joonyoung Shim <jy0922.shim@samsung.com> | 2011-04-08 00:22:10 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-04-13 19:50:44 -0400 |
commit | 8f1d169f999fea892c3fcbf5a79ae8525a477572 (patch) | |
tree | bd440582799dcacc4348121242b8e89cdf448053 /arch/arm/plat-s5p/dev-ehci.c | |
parent | 3e112662129b48bf8571ee5f7c49a4dbb3b70f04 (diff) |
ARM: EXYNOS4: Add usb host phy control
EXYNOS4 has 2 phys for usb host and usb device. This patch supports to
control usb host phy of EXYNOS4.
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch/arm/plat-s5p/dev-ehci.c')
-rw-r--r-- | arch/arm/plat-s5p/dev-ehci.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm/plat-s5p/dev-ehci.c b/arch/arm/plat-s5p/dev-ehci.c index a610e5c60964..94080fff9e9b 100644 --- a/arch/arm/plat-s5p/dev-ehci.c +++ b/arch/arm/plat-s5p/dev-ehci.c | |||
@@ -45,6 +45,13 @@ struct platform_device s5p_device_ehci = { | |||
45 | 45 | ||
46 | void __init s5p_ehci_set_platdata(struct s5p_ehci_platdata *pd) | 46 | void __init s5p_ehci_set_platdata(struct s5p_ehci_platdata *pd) |
47 | { | 47 | { |
48 | s3c_set_platdata(pd, sizeof(struct s5p_ehci_platdata), | 48 | struct s5p_ehci_platdata *npd; |
49 | |||
50 | npd = s3c_set_platdata(pd, sizeof(struct s5p_ehci_platdata), | ||
49 | &s5p_device_ehci); | 51 | &s5p_device_ehci); |
52 | |||
53 | if (!npd->phy_init) | ||
54 | npd->phy_init = s5p_usb_phy_init; | ||
55 | if (!npd->phy_exit) | ||
56 | npd->phy_exit = s5p_usb_phy_exit; | ||
50 | } | 57 | } |