]> git.dujemihanovic.xyz Git - u-boot.git/commit
clk: nuvoton: add read only feature for clk driver
authorJim Liu <jim.t90615@gmail.com>
Tue, 14 Nov 2023 09:00:04 +0000 (17:00 +0800)
committerSean Anderson <seanga2@gmail.com>
Fri, 15 Dec 2023 18:05:55 +0000 (13:05 -0500)
commit652d8d4561a34fc71d9bcb6ad2b0035d2c4189c1
tree9db20008a24fbe3a50c9a59ecee26699ee2ad861
parent5666558a6cb04b2f731a7a13d0bbaefa528e7616
clk: nuvoton: add read only feature for clk driver

Add a flag to set ahb/apb/fiu/spi clock divider as read-only
The spi clock setting is related to booting flash, it is setup by early
bootloader.
It just protects the clock source and can't modify it in uboot.

Signed-off-by: Jim Liu <JJLIU0@nuvoton.com>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
Link: https://lore.kernel.org/r/20231114090004.3746024-1-JJLIU0@nuvoton.com
drivers/clk/nuvoton/clk_npcm.c
drivers/clk/nuvoton/clk_npcm.h
drivers/clk/nuvoton/clk_npcm8xx.c