summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Marangi2026-02-19 23:57:35 +0000
committerChristian Marangi2026-04-22 08:01:09 +0000
commit3a6e94e21ac296a723c35974492f94535e7bf64c (patch)
tree3d3209e29afdb40cf8b68edf4e7bd88520d37c57
parent37326a2aa34b9a74d633295e66a941469ccc60a5 (diff)
downloadopenwrt-3a6e94e21ac296a723c35974492f94535e7bf64c.tar.gz
airoha: an7583: fix wrong clock for SPI and SLIC
Due to confusing Documentation, the SPI and SLIC base clock and register location for Airoha AN7583 SoC were wrong. Fix them with new updated Documentation source to provide correct clock support. Fixes: c5b12fc02ab1 ("airoha: Introduce support for Airoha AN7583 SoC") (cherry picked from commit 6c4c988a5fddbc9560b1d63a3a983647d40f7b63) Link: https://github.com/openwrt/openwrt/pull/22820 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
-rw-r--r--target/linux/airoha/patches-6.12/600-10-clk-en7523-add-support-for-Airoha-AN7583-clock.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/airoha/patches-6.12/600-10-clk-en7523-add-support-for-Airoha-AN7583-clock.patch b/target/linux/airoha/patches-6.12/600-10-clk-en7523-add-support-for-Airoha-AN7583-clock.patch
index 0a57e8a9fb..66f5cdb3f8 100644
--- a/target/linux/airoha/patches-6.12/600-10-clk-en7523-add-support-for-Airoha-AN7583-clock.patch
+++ b/target/linux/airoha/patches-6.12/600-10-clk-en7523-add-support-for-Airoha-AN7583-clock.patch
@@ -32,7 +32,7 @@ Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
+static const u32 gsw7583_base[] = { 540672000, 270336000, 400000000, 200000000 };
+static const u32 emi7583_base[] = { 540672000, 480000000, 400000000, 300000000 };
+static const u32 bus7583_base[] = { 600000000, 540672000, 480000000, 400000000 };
-+static const u32 spi7583_base[] = { 100000000, 12500000 };
++static const u32 spi7583_base[] = { 400000000, 12500000 };
+static const u32 npu7583_base[] = { 666000000, 800000000, 720000000, 600000000 };
+static const u32 crypto7583_base[] = { 540672000, 400000000 };
+static const u32 emmc7583_base[] = { 150000000, 200000000 };
@@ -92,7 +92,7 @@ Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
+
+ .base_reg = REG_SPI_CLK_FREQ_SEL,
+ .base_bits = 1,
-+ .base_shift = 0,
++ .base_shift = 1,
+ .base_values = slic_base,
+ .n_base_values = ARRAY_SIZE(slic_base),
+
@@ -107,7 +107,7 @@ Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
+
+ .base_reg = REG_SPI_CLK_FREQ_SEL,
+ .base_bits = 1,
-+ .base_shift = 1,
++ .base_shift = 0,
+ .base_values = spi7583_base,
+ .n_base_values = ARRAY_SIZE(spi7583_base),
+