]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/usb/misc/usb3503.c
usb: usb5303: add support for reference clock specified in device tree
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 22 May 2014 11:21:38 +0000 (13:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 May 2014 23:19:04 +0000 (16:19 -0700)
commit657d898a9320a7cdb9b94565d75ecf75c25cbf0a
tree149cd288d68ee037b4376a8c578cbe59c6dc4219
parent6fecd4f2a58c60028b1a75deefcf111516d3f836
usb: usb5303: add support for reference clock specified in device tree

USB3503 chip supports 8 values of reference clock. The value is
specified by REF_SEL[1:0] pins and INT_N line. This patch add support
for getting 'refclk' clock, enabling it and setting INT_N line according
to the value of the gathered clock. If no clock has been specified,
driver defaults to the old behaviour (assuming that clock has been
specified by REF_SEL pins from primary reference clock frequencies
table).

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/devicetree/bindings/usb/usb3503.txt
drivers/usb/misc/usb3503.c