ARM: imx: add common clock support for fixup div
authorLiu Ying <Ying.Liu@freescale.com>
Thu, 4 Jul 2013 09:22:26 +0000 (17:22 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Fri, 16 Aug 2013 05:11:24 +0000 (13:11 +0800)
commitcbe7fc8aaeefc71a75c2688602ba5bb570c0a265
treefbe1e589b95e361002b0f481a4b013c4f30b2d39
parentf025569322b899a723990774bbe7a625a7e7da2c
ARM: imx: add common clock support for fixup div

One register may have several fields to control some clocks. It
is possible that the read/write values of some fields may map to
different real functional values, so writing to the other fields
in the same register may break a working clock tree. A real case
is the aclk_podf field in the register 'CCM Serial Clock Multiplexer
Register 1' of i.MX6Q/SDL SoC. This patch introduces a fixup hook
for divider clock which is called before writing a value to clock
registers to support this kind of divider clocks.

Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/mach-imx/Makefile
arch/arm/mach-imx/clk-fixup-div.c [new file with mode: 0644]
arch/arm/mach-imx/clk.h