diff options
author | David Lechner <david@lechnology.com> | 2016-10-27 03:18:15 +0300 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2016-10-31 14:50:27 +0300 |
commit | 9b504750923cb71473cf55e0a3a594a39e57e268 (patch) | |
tree | cc1046f7fa3fe7872016ccce53237334ba62ac2f /arch/arm/mach-davinci/usb-da8xx.c | |
parent | ec7cc27ed157a7323d08c31d73cada1dfe101642 (diff) | |
download | linux-9b504750923cb71473cf55e0a3a594a39e57e268.tar.xz |
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/usb-da8xx.c')
-rw-r--r-- | arch/arm/mach-davinci/usb-da8xx.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/usb-da8xx.c b/arch/arm/mach-davinci/usb-da8xx.c index f141f5171906..4bb190380060 100644 --- a/arch/arm/mach-davinci/usb-da8xx.c +++ b/arch/arm/mach-davinci/usb-da8xx.c @@ -3,6 +3,7 @@ */ #include <linux/dma-mapping.h> #include <linux/init.h> +#include <linux/phy/phy.h> #include <linux/platform_data/usb-davinci.h> #include <linux/platform_device.h> #include <linux/usb/musb.h> @@ -15,6 +16,16 @@ #define DA8XX_USB0_BASE 0x01e00000 #define DA8XX_USB1_BASE 0x01e25000 +static struct platform_device da8xx_usb_phy = { + .name = "da8xx-usb-phy", + .id = -1, +}; + +int __init da8xx_register_usb_phy(void) +{ + return platform_device_register(&da8xx_usb_phy); +} + #if IS_ENABLED(CONFIG_USB_MUSB_HDRC) static struct musb_hdrc_config musb_config = { |