serial: vt8500: UART uses gated clock rather than 24Mhz reference
authorTony Prisk <linux@prisktech.co.nz>
Fri, 18 Jan 2013 02:05:31 +0000 (15:05 +1300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jan 2013 02:54:32 +0000 (18:54 -0800)
commit12faa35ae5cbfbd0d90e2103688e87ceb46c5886
tree483496c3aab85cb54e0d8d19cba2f814718aa44d
parent962963e4ee23bc7518dfee754de5f20d35de71d9
serial: vt8500: UART uses gated clock rather than 24Mhz reference

UART modules on Wondermedia SoCs are connected via a gated clock
source, rather than directly to the 24Mhz reference clock. While
uboot enables UART0 for debugging, other UART ports are unavailable
until the clock is enabled.

This patch checks that a valid clock is actually passed from devicetree,
enables the clock in probe. This change removes the fallback when a
clock was not specified as it doesn't apply any longer (and would only
work if the UART clock was already enabled).

DTSI files are updated for VT8500, WM8505 and WM8650.

Signed-off-by: Tony Prisk <linux@prisktech.co.nz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/boot/dts/vt8500.dtsi
arch/arm/boot/dts/wm8505.dtsi
arch/arm/boot/dts/wm8650.dtsi
drivers/tty/serial/vt8500_serial.c