[PATCH 1/1] sunxi: sun4i: Introduce KConfig option SPL_SYS_CLK_FREQ

Tom Rini trini at konsulko.com
Thu Feb 1 16:40:19 CET 2024


On Thu, Feb 01, 2024 at 02:30:14PM +0100, Ludwig Kormann wrote:

> This option can be used to modify the initial SPL
> CPU clock frequency.
> 
> This follows an earlier discussion regarding A20
> CPUs dying after reboot in SPL initialization due to
> incompatible CPU clock frequency and core voltage. [1]
> 
> First attempt was to update PLL1_CFG_DEFAULT to a fixed
> lower frequency (144MHz), which fixed the observed issue
> but might not suit all A20 users. A KConfig option
> should be the better solution.
> 
> [1]
> https://lists.denx.de/pipermail/u-boot/2024-January/544897.html
> 
> Signed-off-by: Ludwig Kormann <ludwig.kormann at ict42.de>
[snip]
> +if MACH_SUN4I || MACH_SUN5I || MACH_SUN7I
> +config SPL_SYS_CLK_FREQ
> +	int "sunxi SPL CPU clock frequency"
> +	default 384
> +	---help---
> +  A static value for the sunxi SPL CPU frequency, must be a multiple of 24.
> +endif

This should really just be "depends on MACH_SUN4I || MACH_SUN5I ||
MACH_SUN7I" and then "help".

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20240201/9b18f44e/attachment.sig>


More information about the U-Boot mailing list