ARM: at91: remove default values for PMC_PLL_ACR
Subsystems (2)
[email protected]
maintainerPATCH 2/2 ARM: at91: remove default values for PMC_PLL_ACR
From: Cristian Birsan <[email protected]>
Remove default values for PMC PLL Analog Control Register(ACR) as the values are specific for each SoC and PLL and load them from PLL characteristics structure
--- drivers/clk/at91/clk-sam9x60-pll.c | 7 ++----- include/linux/clk/at91_pmc.h | 2 -- 2 files changed, 2 insertions(+), 7 deletions(-)
drivers/clk/at91/clk-sam9x60-pll.c +2 -5
@@ -103,11 +103,8 @@ static int sam9x60_frac_pll_set(struct sam9x60_pll_core *core) (cmul == frac->mul && cfrac == frac->frac)) goto unlock; -/* Recommended value for PMC_PLL_ACR */ -if (core->characteristics->upll) - val =AT91_PMC_PLL_ACR_DEFAULT_UPLL ; -else - val =AT91_PMC_PLL_ACR_DEFAULT_PLLA ; +/* Load recommended value for PMC_PLL_ACR */ + val = core->characteristics->acr;regmap_write (regmap,AT91_PMC_PLL_ACR , val); regmap_write(regmap, AT91_PMC_PLL_CTRL1,
include/linux/clk/at91_pmc.h +0 -2
@@ -47,8 +47,6 @@#define AT91_PMC_PCSR 0x18/* Peripheral Clock Status Register */ #define AT91_PMC_PLL_ACR 0x18/* PLL Analog Control Register [for SAM9X60] */ -#define AT91_PMC_PLL_ACR_DEFAULT_UPLL UL(0x12020010)/* Default PLL ACR value for UPLL */ -#define AT91_PMC_PLL_ACR_DEFAULT_PLLA UL(0x00020010)/* Default PLL ACR value for PLLA */ #define AT91_PMC_PLL_ACR_UTMIVR (1 << 12)/* UPLL Voltage regulator Control */ #define AT91_PMC_PLL_ACR_UTMIBG (1 << 13)/* UPLL Bandgap Control */
Signature · 1 line
2.43.0
kernel test robot
build botkernel test robot noticed the following build errors:
Hi,
kernel test robot noticed the following build errors:
[auto build test ERROR on clk/clk-next]
[also build test ERROR on abelloni/rtc-next cbeznea/tests linus/master v6.17-rc6] [cannot apply to next-20250915]
[If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/nicolas-ferre-microchip-com/ARM-at91-remove-default-values-for-PMC_PLL_ACR/20250915-223911 base: https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git clk-next patch link: https://lore.kernel.org/r/20250915143345.18998-1-nicolas.ferre%40microchip.com patch subject: [PATCH 2/2] ARM: at91: remove default values for PMC_PLL_ACR config: arm-defconfig (https://download.01.org/0day-ci/archive/20250916/[email protected]/config) compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 65ad21d730d25789454d18e811f8ff5db79cb5d4) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250916/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
>> ld.lld: error: undefined symbol: AT91_PMC_PLL_ACR_DEFAULT_PLLA >>> referenced by pm_suspend.S:1181 (arch/arm/mach-at91/pm_suspend.S:1181) >>> arch/arm/mach-at91/pm_suspend.o:(.text+0xa70) in archive vmlinux.a
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki