]> git.dujemihanovic.xyz Git - u-boot.git/commit
ARM: imx: Make PLL settings configurable at board level
authorMarek Vasut <marex@denx.de>
Tue, 27 Aug 2024 20:04:27 +0000 (22:04 +0200)
committerFabio Estevam <festevam@gmail.com>
Sat, 31 Aug 2024 01:53:05 +0000 (22:53 -0300)
commit412a6f39737c01f2320e3ff8bc7aad7a8e2139ab
tree894a6d8227214d3ef5f39d469493018f77e7f94c
parentb16f6db6371026b1108eccf2bb29b14d656d9c35
ARM: imx: Make PLL settings configurable at board level

Staticize intpll_configure(). Add weak board_imx_intpll_override()
function which can be defined at board level to override specific
PLL frequency settings early during boot. This can be used to for
example force faster CPU core clock frequency if the hardware can
handle it.

Example of increasing CPU core clock to 1600 MHz on i.MX8M Plus:
```
int board_imx_intpll_override(enum pll_clocks pll, ulong *freq)
{
       if (pll == ANATOP_ARM_PLL)
               *freq = MHZ(1600);
       return 0;
}
```

Signed-off-by: Marek Vasut <marex@denx.de>
arch/arm/mach-imx/imx8m/clock_imx8mm.c