]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit072837981da6c0a0b0054ea29db9313b5ae09910
tree483496c3aab85cb54e0d8d19cba2f814718aa44d
parentf52403973c30699eaf8d50a5b573cd224428aae7
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