]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
clk: bcm2835: Do not use prediv with bcm2711's PLLs
authorNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Thu, 30 Jul 2020 18:26:19 +0000 (20:26 +0200)
committerStephen Boyd <sboyd@kernel.org>
Mon, 3 Aug 2020 21:26:20 +0000 (14:26 -0700)
commitf34e4651ce66a754f41203284acf09b28b9dd955
tree441b9e580c048be5e31c40a5ed365a029916effe
parent2a08a9232ba2e6103843870e68edae8e381eb02a
clk: bcm2835: Do not use prediv with bcm2711's PLLs

Contrary to previous SoCs, bcm2711 doesn't have a prescaler in the PLL
feedback loop. Bypass it by zeroing fb_prediv_mask when running on
bcm2711.

Note that, since the prediv configuration bits were re-purposed, this
was triggering miscalculations on all clocks hanging from the VPU clock,
notably the aux UART, making its output unintelligible.

Fixes: 42de9ad400af ("clk: bcm2835: Add BCM2711_CLOCK_EMMC2 support")
Reported-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Link: https://lore.kernel.org/r/20200730182619.23246-1-nsaenzjulienne@suse.de
Tested-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/bcm/clk-bcm2835.c