linux_dsm_epyc7002/arch/powerpc/platforms/512x
Gerhard Sittig ba2181271f powerpc/mpc512x: improve DIU related clock setup
adapt the DIU clock initialization to the COMMON_CLK approach:
device tree based clock lookup, prepare and unprepare for clocks,
work with frequencies not dividers, call the appropriate clk_*()
routines and don't access CCM registers

the "best clock" determination now completely relies on the
platform's clock driver to pick a frequency close to what the
caller requests, and merely checks whether the desired frequency
was met (fits the tolerance of the monitor)

this approach shall succeed upon first try in the usual case,
will test a few less desirable yet acceptable frequencies in
edge cases, and will fallback to "best effort" if none of the
previously tried frequencies pass the test

provide a fallback clock lookup approach in case the OF based clock
lookup for the DIU fails, this allows for successful operation in
the presence of an outdated device tree which lacks clock specs

Cc: Anatolij Gustschin <agust@denx.de>
Cc: linuxppc-dev@lists.ozlabs.org
Signed-off-by: Gerhard Sittig <gsi@denx.de>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
2014-01-12 18:53:06 +01:00
..
clock-commonclk.c clk: mpc512x: add backwards compat to the CCF code 2014-01-12 18:53:04 +01:00
Kconfig clk: mpc5xxx: switch to COMMON_CLK, retire PPC_CLOCK 2014-01-12 18:53:04 +01:00
Makefile clk: mpc5xxx: switch to COMMON_CLK, retire PPC_CLOCK 2014-01-12 18:53:04 +01:00
mpc512x_generic.c powerpc/mpc512x: move common code to shared.c file 2013-05-21 10:58:39 +02:00
mpc512x_shared.c powerpc/mpc512x: improve DIU related clock setup 2014-01-12 18:53:06 +01:00
mpc512x.h powerpc/mpc512x: add MPC5125 reset module support for system restart 2013-06-24 21:36:49 +02:00
mpc5121_ads_cpld.c irq_domain/powerpc: constify irq_domain_ops 2012-02-16 06:11:24 -07:00
mpc5121_ads.c powerpc/mpc512x: move common code to shared.c file 2013-05-21 10:58:39 +02:00
mpc5121_ads.h powerpc/mpc5121: Add support for CPLD on MPC5121ADS board 2008-07-12 12:10:55 -06:00
pdm360ng.c powerpc: add explicit OF includes 2013-10-09 20:04:11 -05:00