mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-21 09:42:09 +00:00
The codename for IPQ50xx is Maple (abbreviated as 'MP'), so let's pass the codename to allow the QCA-SSDK to build for the IPQ50xx SoC. In addition, disable compiling the MP_PHY driver in favor of a native driver being upstreamed. Co-developed-by: Ziyang Huang <hzyitc@outlook.com> Signed-off-by: Ziyang Huang <hzyitc@outlook.com> Signed-off-by: George Moussalem <george.moussalem@outlook.com> Link: https://github.com/openwrt/openwrt/pull/17182 Signed-off-by: Robert Marko <robimarko@gmail.com>
58 lines
2.0 KiB
Diff
58 lines
2.0 KiB
Diff
From a90a9f3e2a21cb87c2cbf2ddb999846aa614e88a Mon Sep 17 00:00:00 2001
|
|
From: Ziyang Huang <hzyitc@outlook.com>
|
|
Date: Sun, 8 Sep 2024 15:24:07 +0800
|
|
Subject: [PATCH 2/2] init: replace ioremap_nocache() with ioremap()
|
|
|
|
As per https://lore.kernel.org/linux-mips/20191209194819.GA28157@lst.de/T/,
|
|
ioremap_nocache is deprecated so let's replace all calls by ioremap instead.
|
|
|
|
Signed-off-by: Ziyang Huang <hzyitc@outlook.com>
|
|
Signed-off-by: George Moussalem <george.moussalem@outlook.com>
|
|
---
|
|
src/init/ssdk_clk.c | 8 ++++----
|
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/src/init/ssdk_clk.c b/src/init/ssdk_clk.c
|
|
index bc244c6e..dc45691e 100644
|
|
--- a/src/init/ssdk_clk.c
|
|
+++ b/src/init/ssdk_clk.c
|
|
@@ -1183,7 +1183,7 @@ ssdk_mp_tcsr_get(a_uint32_t tcsr_offset, a_uint32_t *tcsr_val)
|
|
{
|
|
void __iomem *tcsr_base = NULL;
|
|
|
|
- tcsr_base = ioremap_nocache(TCSR_ETH_ADDR, TCSR_ETH_SIZE);
|
|
+ tcsr_base = ioremap(TCSR_ETH_ADDR, TCSR_ETH_SIZE);
|
|
if (!tcsr_base)
|
|
{
|
|
SSDK_ERROR("Failed to map tcsr eth address!\n");
|
|
@@ -1200,7 +1200,7 @@ ssdk_mp_tcsr_set(a_uint32_t tcsr_offset, a_uint32_t tcsr_val)
|
|
{
|
|
void __iomem *tcsr_base = NULL;
|
|
|
|
- tcsr_base = ioremap_nocache(TCSR_ETH_ADDR, TCSR_ETH_SIZE);
|
|
+ tcsr_base = ioremap(TCSR_ETH_ADDR, TCSR_ETH_SIZE);
|
|
if (!tcsr_base)
|
|
{
|
|
SSDK_ERROR("Failed to map tcsr eth address!\n");
|
|
@@ -1248,7 +1248,7 @@ ssdk_mp_cmnblk_stable_check(void)
|
|
a_uint32_t reg_val;
|
|
int i, loops = 20;
|
|
|
|
- pll_lock = ioremap_nocache(CMN_PLL_LOCKED_ADDR, CMN_PLL_LOCKED_SIZE);
|
|
+ pll_lock = ioremap(CMN_PLL_LOCKED_ADDR, CMN_PLL_LOCKED_SIZE);
|
|
if (!pll_lock) {
|
|
SSDK_ERROR("Failed to map CMN PLL LOCK register!\n");
|
|
return A_FALSE;
|
|
@@ -1303,7 +1303,7 @@ static void ssdk_cmnblk_pll_src_set(enum cmnblk_pll_src_type pll_source)
|
|
void __iomem *cmn_pll_src_base = NULL;
|
|
a_uint32_t reg_val;
|
|
|
|
- cmn_pll_src_base = ioremap_nocache(CMN_BLK_PLL_SRC_ADDR, CMN_BLK_SIZE);
|
|
+ cmn_pll_src_base = ioremap(CMN_BLK_PLL_SRC_ADDR, CMN_BLK_SIZE);
|
|
if (!cmn_pll_src_base) {
|
|
SSDK_ERROR("Failed to map cmn pll source address!\n");
|
|
return;
|
|
--
|
|
2.40.1
|
|
|