]> git.karo-electronics.de Git - karo-tx-linux.git/commit
serial: samsung: switch to clkdev based clock lookup
authorThomas Abraham <thomas.abraham@linaro.org>
Mon, 24 Oct 2011 09:47:46 +0000 (11:47 +0200)
committerKukjin Kim <kgene.kim@samsung.com>
Tue, 8 Nov 2011 07:53:23 +0000 (16:53 +0900)
commit71ee4cc190caf742ed10c253743d6eb4b8f0f76f
tree39b01a1cf0829b5ebf831a05cd6b5ca85ae61229
parent7148b2a4bf4ce50f690fa6d05d4bccdba76504b7
serial: samsung: switch to clkdev based clock lookup

Instead of using clock names supplied in platform data, use a generic
clock name 'clk_uart_baud' to look up clocks. The platform code should
register clocks with the name 'clk_uart_baud' which can be used by the
baud rate generator. The clock lookup and selection of the best clock
as baud rate clock is reworked.

Platform code can specify the clocks that can be used as source for the
baud clock (as supported previously by passing names of clocks). A new
member is added to the platform data 'clk_sel' which holds a bit-field
value with each bit representing a baud source clock. If a bit at any
bit position is set, that clock is looked up to participate in the
selection of the baud clock source.

Cc: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/plat-samsung/include/plat/regs-serial.h
drivers/tty/serial/samsung.c
drivers/tty/serial/samsung.h