diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2022-03-04 13:52:56 +0100 |
---|---|---|
committer | Abel Vesa <abel.vesa@nxp.com> | 2022-03-04 17:06:30 +0200 |
commit | b09c68dc57c9d44071d83bb935b733f53ea2b2b4 (patch) | |
tree | 7c9264f6b8d64530eb6e6ce9026e6bb5aefebca2 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 80cbc80612a01461a257f2c2eb9976cbadfb7be2 (diff) |
clk: imx: pll14xx: Support dynamic rates
The pll1443x PLL so far only supports rates from a rate table passed
during initialization. Calculating PLL settings dynamically helps audio
applications to get their desired rates, so support for this is added
in this patch.
The strategy to get to the PLL setting for a rate is:
- First try to only adjust kdiv which specifies the fractional part of the PLL.
This setting can be changed without glitches on the output and is therefore
preferred
- When that isn't possible then the rate table is searched for suitable rates,
so for standard rates the same settings are used as without this patch
- As a last resort the best settings are calculated dynamically
The code in this patch is based on patches from Adrian Alonso <adrian.alonso@nxp.com>
and Mads Bligaard Nielsen <bli@bang-olufsen.dk>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Abel Vesa <abel.vesa@nxp.com>
Link: https://lore.kernel.org/r/20220304125256.2125023-9-s.hauer@pengutronix.de
Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions