linux_dsm_epyc7002/drivers/clk
Stefan Wahren 039e597075 clk: mxs: Fix invalid 32-bit access to frac registers
According to i.MX23 and i.MX28 reference manual [1],[2] the fractional
clock control register is 32-bit wide, but is separated in 4 parts.
So write instructions must not apply to more than 1 part at once.

The clk init for the i.MX28 violates this restriction and all the other
accesses on that register suggest that there isn't such a restriction.

This patch restricts the access to this register to byte instructions and
extends the comment in the init functions.

Btw the imx23 init now uses a R-M-W sequence just like imx28 init
to avoid any clock glitches.

The changes has been tested with a i.MX23 and a i.MX28 board.

[1] - http://cache.freescale.com/files/dsp/doc/ref_manual/IMX23RM.pdf
[2] - http://cache.freescale.com/files/dsp/doc/ref_manual/MCIMX28RM.pdf

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Reviewed-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
2015-02-03 13:08:05 -08:00
..
at91 clk: Add rate constraints to clocks 2015-02-02 14:23:42 -08:00
bcm clk: Add rate constraints to clocks 2015-02-02 14:23:42 -08:00
berlin clk: berlin: bg2q: remove non-exist "smemc" gate clock 2015-01-13 10:58:43 -08:00
hisilicon clk: Add rate constraints to clocks 2015-02-02 14:23:42 -08:00
keystone
mmp clk: Add rate constraints to clocks 2015-02-02 14:23:42 -08:00
mvebu clk: mvebu: add suspend/resume for gatable clocks 2014-11-30 16:40:12 +00:00
mxs clk: mxs: Fix invalid 32-bit access to frac registers 2015-02-03 13:08:05 -08:00
pxa clk: pxa: add pxa3xx clock driver 2015-01-27 17:03:52 -08:00
qcom clk: Add rate constraints to clocks 2015-02-02 14:23:42 -08:00
rockchip The two big changes are the additional of the watchdog clock, which 2015-01-27 16:26:12 -08:00
samsung Exynos 3250, 4415 drivers cleanup by using common code 2015-02-02 14:51:16 -08:00
shmobile clk: shmobile: Add R-Car Gen2 ADSP clock support 2015-01-08 16:14:31 +01:00
sirf
socfpga
spear
st clk: st: STiH410: Fix pdiv and fdiv divisor when setting rate 2015-01-20 10:09:13 -08:00
sunxi clk: Add rate constraints to clocks 2015-02-02 14:23:42 -08:00
tegra clk: tegra: Define PLLD_DSI and remove dsia(b)_mux 2015-02-02 16:22:34 +02:00
ti clk: omap: compile legacy omap3 clocks conditionally 2015-02-03 11:06:11 -08:00
ux500 clk: ux500: Drop use of clk-private.h 2015-01-27 11:56:33 -08:00
versatile ARM: vexpress: Remove non-DT code 2014-11-28 16:08:16 +01:00
x86
zynq clk: zynq: Force CPU_2X clock to be ungated 2015-01-27 17:00:24 -08:00
clk-asm9260.c ARM: clk: add clk-asm9260 driver 2015-01-20 10:10:51 -08:00
clk-axi-clkgen.c
clk-axm5516.c
clk-bcm2835.c
clk-cdce706.c clk: TI CDCE706 clock synthesizer driver 2015-01-17 13:52:40 -08:00
clk-clps711x.c
clk-composite.c clk: Add rate constraints to clocks 2015-02-02 14:23:42 -08:00
clk-conf.c
clk-devres.c
clk-divider.c clk: divider: Make generic for usage elsewhere 2015-01-27 11:48:52 -08:00
clk-efm32gg.c
clk-fixed-factor.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2013-11-15 16:47:22 -08:00
clk-fixed-rate.c
clk-fractional-divider.c
clk-gate.c clk-gate: fix bit # check in clk_register_gate() 2015-01-20 10:09:05 -08:00
clk-gpio-gate.c
clk-highbank.c
clk-ls1x.c clk: ls1x: Update relationship among all clocks 2014-11-24 07:45:09 +01:00
clk-max77686.c
clk-max77802.c
clk-max-gen.c
clk-max-gen.h
clk-moxart.c
clk-mux.c clk: Add clk_unregister_{divider, gate, mux} to close memory leak 2015-01-17 13:52:41 -08:00
clk-nomadik.c
clk-nspire.c
clk-palmas.c
clk-qoriq.c clk: qoriq: Use pr_fmt() 2015-01-28 10:11:40 -08:00
clk-rk808.c
clk-s2mps11.c Please consider pulling the clk framework changes toward 3.19. It is 2014-12-20 16:42:36 -08:00
clk-si570.c
clk-si5351.c
clk-si5351.h
clk-twl6040.c
clk-u300.c
clk-vt8500.c
clk-wm831x.c
clk-xgene.c
clk.c clk: Add rate constraints to clocks 2015-02-02 14:23:42 -08:00
clk.h clk: Make clk API return per-user struct clk instances 2015-02-02 14:22:19 -08:00
clkdev.c clkdev: Export clk_register_clkdev 2015-02-02 14:23:43 -08:00
Kconfig clk: ppc-corenet: rename driver to clk-qoriq 2015-01-20 10:09:12 -08:00
Makefile ARM: clk: add clk-asm9260 driver 2015-01-20 10:10:51 -08:00