[openwrt/openwrt] ramips: mt7628: fix memory controller reset bit

LEDE Commits lede-commits at lists.infradead.org
Sat Aug 6 10:59:12 PDT 2022


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/2293f1abe4d17c9ed9593f4e24fc73836f99dea5

commit 2293f1abe4d17c9ed9593f4e24fc73836f99dea5
Author: Reto Schneider <reto.schneider at husqvarnagroup.com>
AuthorDate: Fri Jun 11 11:19:51 2021 +0200

    ramips: mt7628: fix memory controller reset bit
    
    According to MediaTek MT7688 Datasheet v1.4, as well as the MT7628
    counterpart, the memory controller reset bit (MC_RST) is 10, not 20.
    Reset bit 20 is used for for UART 2 (UART2_RST).
    
    Please note: Due to the lack of hardware, I was not able to test this
    change.
    
    Signed-off-by: Reto Schneider <reto.schneider at husqvarnagroup.com>
---
 target/linux/ramips/dts/mt7628an.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/ramips/dts/mt7628an.dtsi b/target/linux/ramips/dts/mt7628an.dtsi
index 7bc001207b..8ef73dce80 100644
--- a/target/linux/ramips/dts/mt7628an.dtsi
+++ b/target/linux/ramips/dts/mt7628an.dtsi
@@ -76,7 +76,7 @@
 			compatible = "ralink,mt7620a-memc", "ralink,rt3050-memc";
 			reg = <0x300 0x100>;
 
-			resets = <&rstctrl 20>;
+			resets = <&rstctrl 10>;
 			reset-names = "mc";
 
 			interrupt-parent = <&intc>;




More information about the lede-commits mailing list