summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/board-omapl138-hawk.c
diff options
context:
space:
mode:
authorDavid Lechner <david@lechnology.com>2016-10-26 19:18:15 -0500
committerSekhar Nori <nsekhar@ti.com>2016-10-31 17:20:27 +0530
commit9b504750923cb71473cf55e0a3a594a39e57e268 (patch)
treecc1046f7fa3fe7872016ccce53237334ba62ac2f /arch/arm/mach-davinci/board-omapl138-hawk.c
parentec7cc27ed157a7323d08c31d73cada1dfe101642 (diff)
downloadop-kernel-dev-9b504750923cb71473cf55e0a3a594a39e57e268.zip
op-kernel-dev-9b504750923cb71473cf55e0a3a594a39e57e268.tar.gz
ARM: davinci: da8xx: Add USB PHY platform device
There is now a proper phy driver for the DA8xx SoC USB PHY. This adds the platform device declarations needed to use it. Signed-off-by: David Lechner <david@lechnology.com> [nsekhar@ti.com: keep usb-davinci.h included in board-da830-evm.c minor subject line adjustment] Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'arch/arm/mach-davinci/board-omapl138-hawk.c')
-rw-r--r--arch/arm/mach-davinci/board-omapl138-hawk.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/board-omapl138-hawk.c b/arch/arm/mach-davinci/board-omapl138-hawk.c
index 70ed5ef..67477ca 100644
--- a/arch/arm/mach-davinci/board-omapl138-hawk.c
+++ b/arch/arm/mach-davinci/board-omapl138-hawk.c
@@ -260,6 +260,11 @@ static __init void omapl138_hawk_usb_init(void)
cfgchip2 |= CFGCHIP2_REFFREQ_24MHZ;
__raw_writel(cfgchip2, DA8XX_SYSCFG0_VIRT(DA8XX_CFGCHIP2_REG));
+ ret = da8xx_register_usb_phy();
+ if (ret)
+ pr_warn("%s: USB PHY registration failed: %d\n",
+ __func__, ret);
+
ret = gpio_request_one(DA850_USB1_VBUS_PIN,
GPIOF_DIR_OUT, "USB1 VBUS");
if (ret < 0) {
OpenPOWER on IntegriCloud