projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83b443d
)
clk: starfive: jh7110: Add security clocks
author
Chanho Park
<chanho61.park@samsung.com>
Wed, 1 Nov 2023 12:16:49 +0000
(21:16 +0900)
committer
Leo Yu-Chi Liang
<ycliang@andestech.com>
Thu, 2 Nov 2023 09:45:53 +0000
(17:45 +0800)
Add STGCLK_SEC_HCLK and STGCLK_SEC_MISCAHB clocks for JH7110 TRNG
device.
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
drivers/clk/starfive/clk-jh7110.c
patch
|
blob
|
history
diff --git
a/drivers/clk/starfive/clk-jh7110.c
b/drivers/clk/starfive/clk-jh7110.c
index 31aaf3340f941b95b806296f52ec1a0f467e0c6e..a835541e48e960bfaba11b0d573fe14b9a479de6 100644
(file)
--- a/
drivers/clk/starfive/clk-jh7110.c
+++ b/
drivers/clk/starfive/clk-jh7110.c
@@
-539,6
+539,16
@@
static int jh7110_stgcrg_init(struct udevice *dev)
"pcie1_tl", "stg_axiahb",
OFFSET(JH7110_STGCLK_PCIE1_TL)));
+ /* Security clocks */
+ clk_dm(JH7110_STG_ID_TRANS(JH7110_STGCLK_SEC_HCLK),
+ starfive_clk_gate(priv->reg,
+ "sec_ahb", "stg_axiahb",
+ OFFSET(JH7110_STGCLK_SEC_HCLK)));
+ clk_dm(JH7110_STG_ID_TRANS(JH7110_STGCLK_SEC_MISCAHB),
+ starfive_clk_gate(priv->reg,
+ "sec_misc_ahb", "stg_axiahb",
+ OFFSET(JH7110_STGCLK_SEC_MISCAHB)));
+
return 0;
}