]> 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>
Wed, 2 Nov 2011 11:51:12 +0000 (20:51 +0900)
commitef90ec676041aeafe1aafac6bcdd7bfdc42f45cd
treef45d00a61333fe5e1ab0c856565673afb287c391
parent381f2027b5b886c717bfd0ece795bdbb8a9d6728
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