summaryrefslogtreecommitdiffstats
path: root/include/misc
diff options
context:
space:
mode:
authorAnson Huang <b20788@freescale.com>2014-09-11 11:29:42 +0800
committerShawn Guo <shawn.guo@freescale.com>2014-09-16 10:09:41 +0800
commitbad3db104f8922df2c84fd7653cfbcbc93cd0cb7 (patch)
tree19bea59e889eefaed55dea1de283508b45093af4 /include/misc
parent6f11c69d35d5b1db0ec4cfccd0188b00eada3ad3 (diff)
downloadop-kernel-dev-bad3db104f8922df2c84fd7653cfbcbc93cd0cb7.zip
op-kernel-dev-bad3db104f8922df2c84fd7653cfbcbc93cd0cb7.tar.gz
ARM: imx: source gpt per clk from OSC for system timer
On i.MX6Q TO > 1.0, i.MX6DL and i.MX6SX, gpt per clock can be from OSC instead of ipg_per, as ipg_per's rate may be scaled when system enter low bus mode, to keep system timer NOT drift, better to make gpt per clock at fixed rate, here add support for gpt per clock to be from OSC which is at fixed rate always. There are some difference on this implementation of gpt per clock source, see below for details: i.MX6Q TO > 1.0: GPT_CR_CLKSRC, b'101 selects fix clock of OSC / 8 for gpt per clk; i.MX6DL and i.MX6SX: GPT_CR_CLKSRC, b'101 selects OSC for gpt per clk, and we must enable GPT_CR_24MEM to enable OSC clk source for gpt per, GPT_PR_PRESCALER24M is for pre-scaling of this OSC clk, here set it to 8 to make gpt per clk is 3MHz; i.MX6SL: ipg_per can be from OSC directly, so no need to implement this new clk source for gpt per. Signed-off-by: Anson Huang <b20788@freescale.com> Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Diffstat (limited to 'include/misc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud