Skip to content

Commit bfe257f

Browse files
Ansuelbebarino
authored andcommitted
clk: en7523: Add clock for eMMC for EN7581
Add clock for eMMC for EN7581. This is used to give info of the current eMMC source clock and to switch it from 200MHz or 150MHz. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> Link: https://lore.kernel.org/r/20250113231030.6735-5-ansuelsmth@gmail.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 82108ad commit bfe257f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

drivers/clk/clk-en7523.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ static const u32 emi7581_base[] = { 540000000, 480000000, 400000000, 300000000 }
9191
static const u32 bus7581_base[] = { 600000000, 540000000 };
9292
static const u32 npu7581_base[] = { 800000000, 750000000, 720000000, 600000000 };
9393
static const u32 crypto_base[] = { 540000000, 480000000 };
94+
static const u32 emmc7581_base[] = { 200000000, 150000000 };
9495

9596
static const struct en_clk_desc en7523_base_clks[] = {
9697
{
@@ -281,6 +282,15 @@ static const struct en_clk_desc en7581_base_clks[] = {
281282
.base_shift = 0,
282283
.base_values = crypto_base,
283284
.n_base_values = ARRAY_SIZE(crypto_base),
285+
}, {
286+
.id = EN7581_CLK_EMMC,
287+
.name = "emmc",
288+
289+
.base_reg = REG_CRYPTO_CLKSRC2,
290+
.base_bits = 1,
291+
.base_shift = 12,
292+
.base_values = emmc7581_base,
293+
.n_base_values = ARRAY_SIZE(emmc7581_base),
284294
}
285295
};
286296

0 commit comments

Comments
 (0)