Author: blogic
Date: 2015-12-11 16:03:08 +0100 (Fri, 11 Dec 2015)
New Revision: 47840
Added:
trunk/target/linux/ramips/patches-4.3/0059-correct-CPC_BASE_MASK.patch
Log:
ramips: Fix CM_GCR_CPC_BASE_CPCBASE_{MSK, SHF} values
Update CM_GCR_CPC_BASE_CPCBASE_{MSK,SHF} to match datasheet
Signed-off-by: Nikolay Martynov <[email protected]>
Added: trunk/target/linux/ramips/patches-4.3/0059-correct-CPC_BASE_MASK.patch
===================================================================
--- trunk/target/linux/ramips/patches-4.3/0059-correct-CPC_BASE_MASK.patch
(rev 0)
+++ trunk/target/linux/ramips/patches-4.3/0059-correct-CPC_BASE_MASK.patch
2015-12-11 15:03:08 UTC (rev 47840)
@@ -0,0 +1,13 @@
+--- a/arch/mips/include/asm/mips-cm.h
++++ b/arch/mips/include/asm/mips-cm.h
+@@ -270,8 +270,8 @@ BUILD_CM_Cx_R_(tcid_8_priority, 0x80)
+ #define CM_GCR_GIC_BASE_GICEN_MSK (_ULCAST_(0x1) << 0)
+
+ /* GCR_CPC_BASE register fields */
+-#define CM_GCR_CPC_BASE_CPCBASE_SHF 17
+-#define CM_GCR_CPC_BASE_CPCBASE_MSK (_ULCAST_(0x7fff) << 17)
++#define CM_GCR_CPC_BASE_CPCBASE_SHF 15
++#define CM_GCR_CPC_BASE_CPCBASE_MSK (_ULCAST_(0x1ffff) << 15)
+ #define CM_GCR_CPC_BASE_CPCEN_SHF 0
+ #define CM_GCR_CPC_BASE_CPCEN_MSK (_ULCAST_(0x1) << 0)
+
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits