twx-linux/include/linux/clk
Dario Binacchi 0899431f95 clk: ti: add am33xx/am43xx spread spectrum clock support
The patch enables spread spectrum clocking (SSC) for MPU and LCD PLLs.
As reported by the TI spruh73x/spruhl7x RM, SSC is only supported for
the DISP/LCD and MPU PLLs on am33xx/am43xx. SSC is not supported for
DDR, PER, and CORE PLLs.

Calculating the required values and setting the registers accordingly
was taken from the set_mpu_spreadspectrum routine contained in the
arch/arm/mach-omap2/am33xx/clock_am33xx.c file of the u-boot project.

In locked condition, DPLL output clock = CLKINP *[M/N]. In case of
SSC enabled, the reference manual explains that there is a restriction
of range of M values. Since the omap2_dpll_round_rate routine attempts
to select the minimum possible N, the value of M obtained is not
guaranteed to be within the range required. With the new "ti,min-div"
parameter it is possible to increase N and consequently M to satisfy the
constraint imposed by SSC.

Signed-off-by: Dario Binacchi <dariobin@libero.it>
Reviewed-by: Tero Kristo <kristo@kernel.org>
Link: https://lore.kernel.org/r/20210606202253.31649-6-dariobin@libero.it
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2021-06-08 17:49:16 -07:00
..
analogbits-wrpll-cln28hpc.h clk: analogbits: add Wide-Range PLL library 2019-05-03 09:20:48 -07:00
at91_pmc.h clk: at91: clk-utmi: add utmi support for sama7g5 2020-07-24 02:19:08 -07:00
clk-conf.h clk: add include guard to clk-conf.h 2019-09-17 10:27:46 -07:00
davinci.h clk: davinci: Fix link errors when not all SoCs are enabled 2018-05-30 12:48:49 -07:00
imx.h clk: imx: Move 'imx6sl_set_wait_clk()'s prototype out to accessible header 2021-01-30 22:13:23 +08:00
mmp.h
mxs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
renesas.h clk: renesas: Convert to SPDX identifiers 2018-09-28 17:16:37 -07:00
samsung.h clk: samsung: Allow compile testing of Exynos, S3C64xx and S5Pv210 2020-11-23 10:25:45 +01:00
spear.h clk: spear: Move prototype to accessible header 2021-02-11 11:56:06 -08:00
sunxi-ng.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 282 2019-06-05 17:36:37 +02:00
tegra.h clk: tegra: Add PLLE HW power sequencer control 2021-03-24 14:01:58 +01:00
ti.h clk: ti: add am33xx/am43xx spread spectrum clock support 2021-06-08 17:49:16 -07:00
zynq.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156 2019-05-30 11:26:35 -07:00