usb: usb5303: add support for reference clock specified in device tree
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 7 May 2014 07:04:14 +0000 (09:04 +0200)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:47:49 +0000 (11:47 +0900)
commit67ff66690fece77a51099129b2aa87c06a2a8805
treebaf17c740457bb84e47ee99b315474680b33ed5a
parent0d3201717cc87dca62d3e20e7d91a024f2adcadd
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>
Change-Id: I3453e714f9a793640b8cb6c0b4ccf699661ec934
drivers/usb/misc/usb3503.c