mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
clk: starfive: jh7110: Add security clocks
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>
This commit is contained in:
committed by
Leo Yu-Chi Liang
parent
83b443df26
commit
88af85cf92
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user