]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: S3C2440: move handling of fclk/n clock to platform code
authorThomas Abraham <thomas.abraham@linaro.org>
Mon, 24 Oct 2011 09:47:40 +0000 (11:47 +0200)
committerKukjin Kim <kgene.kim@samsung.com>
Tue, 8 Nov 2011 07:53:22 +0000 (16:53 +0900)
commit7148b2a4bf4ce50f690fa6d05d4bccdba76504b7
treef0107a3e2de393e7570e3654b34de52215662140
parent5ece29549af209f26e865626344fa01e2862679e
ARM: S3C2440: move handling of fclk/n clock to platform code

s3c2440 uses fclk/n (fclk divided by n) clock as one of the possible clocks used
to generate the baud rate clock. The divider 'n' in this case can be logically
represented outside of the uart controller.

This patch creates a new clock by name "fclk_n" for s3c2440 based platforms to
represent the fclk/n clock in the platform code. This clock provides a get_rate
callback that checks the UCON0/1/2 registers to determine the clock rate. The
samsung uart driver would receive the "fclk_n" clock name as one of the possible
baud rate clock options and the driver need not determine clock rate of fclk/n.

Cc: Ben Dooks <ben-linux@fluff.org>
Cc: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/mach-s3c2440/clock.c
arch/arm/mach-s3c2440/mach-rx1950.c
arch/arm/mach-s3c2440/mach-rx3715.c
drivers/tty/serial/s3c2440.c
drivers/tty/serial/samsung.c