linux/drivers/clk/at91
Nicolas Ferre b2cf49f469 clk: at91: clk-sam9x60-pll: force write to PLL_UPDT register
[ Upstream commit af98caeaa7 ]

This register is important for sequencing the commands to PLLs, so
actually write the update bits with regmap_write_bits() instead of
relying on a read/modify/write regmap command that could skip the actual
hardware write if the value is identical to the one read.

It's changed when modification is needed to the PLL, when
read-only operation is done, we could keep the call to
regmap_update_bits().

Add a comment to the sam9x60_div_pll_set_div() function that uses this
PLL_UPDT register so that it's used consistently, according to the
product's datasheet.

Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Tested-by: Ryan Wanner <ryan.wanner@microchip.com> # on sama7d65 and sam9x75
Link: https://lore.kernel.org/r/20250827150811.82496-1-nicolas.ferre@microchip.com
[claudiu.beznea: fix "Alignment should match open parenthesis"
 checkpatch.pl check]
Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-11-13 15:34:33 -05:00
..
at91rm9200.c clk: at91: clk-system: add support for parent_hw 2023-06-21 10:42:48 +03:00
at91sam9g45.c clk: at91: clk-utmi: add support for parent_hw 2023-06-21 10:42:48 +03:00
at91sam9n12.c clk: at91: clk-system: add support for parent_hw 2023-06-21 10:42:48 +03:00
at91sam9rl.c clk: at91: clk-utmi: add support for parent_hw 2023-06-21 10:42:48 +03:00
at91sam9x5.c clk: at91: clk-utmi: add support for parent_hw 2023-06-21 10:42:48 +03:00
at91sam9260.c clk: at91: clk-system: add support for parent_hw 2023-06-21 10:42:48 +03:00
clk-audio-pll.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
clk-generated.c clk: at91: clk-generated: add support for parent_hw 2023-06-21 10:42:45 +03:00
clk-h32mx.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
clk-i2s-mux.c clk: at91: move DT compatibility code to its own file 2018-10-17 10:45:39 -07:00
clk-main.c Merge branches 'clk-qcom' and 'clk-microchip' into clk-next 2023-06-26 16:36:14 -07:00
clk-master.c clk: at91: clk-master: Add check for divide by 3 2025-11-13 15:34:33 -05:00
clk-peripheral.c clk: at91: peripheral: fix return value 2025-10-19 16:33:35 +02:00
clk-pll.c clk: at91: re-factor clocks suspend/resume 2021-10-26 18:27:41 -07:00
clk-plldiv.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
clk-programmable.c clk: at91: clk-programmable: add support for parent_hw 2023-06-21 10:42:47 +03:00
clk-sam9x60-pll.c clk: at91: clk-sam9x60-pll: force write to PLL_UPDT register 2025-11-13 15:34:33 -05:00
clk-slow.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
clk-smd.c clk: at91: smd: Switch to determine_rate 2023-06-08 18:39:32 -07:00
clk-system.c clk: at91: clk-system: add support for parent_hw 2023-06-21 10:42:48 +03:00
clk-usb.c clk: at91: re-factor clocks suspend/resume 2021-10-26 18:27:41 -07:00
clk-utmi.c clk: at91: remove unnecessary conditions 2023-10-18 17:56:13 -07:00
dt-compat.c clk: at91: Use of_property_count_u32_elems() to get property length 2024-08-02 16:53:00 -07:00
Makefile clk: at91: sam9x7: add sam9x7 pmc driver 2024-08-07 19:16:48 +03:00
pmc.c clk: at91: pmc: add sama7g5 to the list of available pmcs 2021-10-26 18:27:42 -07:00
pmc.h clk: at91: sama7g5: move mux table macros to header file 2024-08-07 19:16:47 +03:00
sam9x7.c clk: at91: sam9x7: Add peripheral clock id for pmecc 2025-11-13 15:34:33 -05:00
sam9x60.c clk: at91: clk-sam9x60-pll: re-factor to support individual core freq outputs 2024-08-07 19:16:46 +03:00
sama5d2.c clk: at91: clk-utmi: add support for parent_hw 2023-06-21 10:42:48 +03:00
sama5d3.c clk: at91: clk-utmi: add support for parent_hw 2023-06-21 10:42:48 +03:00
sama5d4.c clk: at91: clk-utmi: add support for parent_hw 2023-06-21 10:42:48 +03:00
sama7g5.c clk: at91: sama7g5: Allocate only the needed amount of memory for PLLs 2024-08-24 17:44:11 +03:00
sckc.c Merge branches 'clk-qcom' and 'clk-microchip' into clk-next 2023-06-26 16:36:14 -07:00