ARM: imx: add common clock support for fixup mux
authorLiu Ying <Ying.Liu@freescale.com>
Thu, 4 Jul 2013 09:35:46 +0000 (17:35 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Fri, 16 Aug 2013 05:11:24 +0000 (13:11 +0800)
commita49e6c4b820488b79ada6da9ce609fa8611d3e00
treeac05da5efae2363c81decfdbe941537fcf4d4996
parentcbe7fc8aaeefc71a75c2688602ba5bb570c0a265
ARM: imx: add common clock support for fixup mux

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 multiplexer clock which is called before writing a value to
clock registers to support this kind of multiplexer 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-mux.c [new file with mode: 0644]
arch/arm/mach-imx/clk.h