ARM: davinci: da8xx: add usb phy clocks
authorDavid Lechner <david@lechnology.com>
Mon, 31 Oct 2016 20:47:20 +0000 (15:47 -0500)
committerSekhar Nori <nsekhar@ti.com>
Tue, 1 Nov 2016 09:54:14 +0000 (15:24 +0530)
commit0004b02a6820e855788fc029b21d710b3c5fdfe0
treea8c43a1bc66c1d85b38c5b75c05e9975d4d54d09
parent3b996e5f8f4057b76eacae493a309215f3fd8485
ARM: davinci: da8xx: add usb phy clocks

Up to this point, the USB phy clock configuration was handled manually in
the board files and in the usb drivers. This adds proper clocks so that
the usb drivers can use clk_get and clk_enable and not have to worry about
the details. Also, the related code is removed from the board files and
replaced with the new clock registration functions.

This also removes the #if IS_ENABLED(CONFIG_USB_MUSB_HDRC) around the musb
declaration and renames the musb platform device so that we can reference
it from the usb20 clock even if the musb device is not used.

Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/mach-davinci/board-da830-evm.c
arch/arm/mach-davinci/board-omapl138-hawk.c
arch/arm/mach-davinci/include/mach/da8xx.h
arch/arm/mach-davinci/usb-da8xx.c