summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/board-omapl138-hawk.c
diff options
context:
space:
mode:
authorDavid Lechner2016-10-27 02:18:15 +0200
committerSekhar Nori2016-10-31 12:50:27 +0100
commit9b504750923cb71473cf55e0a3a594a39e57e268 (patch)
treecc1046f7fa3fe7872016ccce53237334ba62ac2f /arch/arm/mach-davinci/board-omapl138-hawk.c
parentARM: davinci: da8xx-dt: add OF_DEV_AUXDATA entry for lcdc (diff)
downloadkernel-qcow2-linux-9b504750923cb71473cf55e0a3a594a39e57e268.tar.gz
kernel-qcow2-linux-9b504750923cb71473cf55e0a3a594a39e57e268.tar.xz
kernel-qcow2-linux-9b504750923cb71473cf55e0a3a594a39e57e268.zip
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 70ed5ef2ef8c..67477ca4f15a 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) {