mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-10 04:41:49 +00:00
6b4fcc55a9
Add patch fixing support for MMC. Additional clock are needed for MMC to work and some small fixup to make the Mediatek MMC driver on Airoha SoC. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> (cherry picked from commit be5a9ff24b9c3b7d1b5bf508b84a35be9f9b3ea9)
40 lines
1.3 KiB
Diff
40 lines
1.3 KiB
Diff
From 4fc22765b3888cf6575015b904718bfd36d1f49c Mon Sep 17 00:00:00 2001
|
|
From: Christian Marangi <ansuelsmth@gmail.com>
|
|
Date: Wed, 11 Dec 2024 12:22:38 +0100
|
|
Subject: [PATCH 4/4] 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>
|
|
---
|
|
drivers/clk/clk-en7523.c | 10 ++++++++++
|
|
1 file changed, 10 insertions(+)
|
|
|
|
--- a/drivers/clk/clk-en7523.c
|
|
+++ b/drivers/clk/clk-en7523.c
|
|
@@ -91,6 +91,7 @@ static const u32 emi7581_base[] = { 5400
|
|
static const u32 bus7581_base[] = { 600000000, 540000000 };
|
|
static const u32 npu7581_base[] = { 800000000, 750000000, 720000000, 600000000 };
|
|
static const u32 crypto_base[] = { 540000000, 480000000 };
|
|
+static const u32 emmc7581_base[] = { 200000000, 150000000 };
|
|
|
|
static const struct en_clk_desc en7523_base_clks[] = {
|
|
{
|
|
@@ -281,6 +282,15 @@ static const struct en_clk_desc en7581_b
|
|
.base_shift = 0,
|
|
.base_values = crypto_base,
|
|
.n_base_values = ARRAY_SIZE(crypto_base),
|
|
+ }, {
|
|
+ .id = EN7581_CLK_EMMC,
|
|
+ .name = "emmc",
|
|
+
|
|
+ .base_reg = REG_CRYPTO_CLKSRC2,
|
|
+ .base_bits = 1,
|
|
+ .base_shift = 12,
|
|
+ .base_values = emmc7581_base,
|
|
+ .n_base_values = ARRAY_SIZE(emmc7581_base),
|
|
}
|
|
};
|
|
|