summaryrefslogtreecommitdiff
path: root/target/linux/ramips/patches-4.4/0059-correct-CPC_BASE_MASK.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-03-07 16:33:34 +0000
committerFelix Fietkau <nbd@openwrt.org>2016-03-07 16:33:34 +0000
commitd041e8b44b042d373b0b474ee69caed840f9a541 (patch)
tree4255b83b60fd526a74b68b5b55cc0da54d3f7ab6 /target/linux/ramips/patches-4.4/0059-correct-CPC_BASE_MASK.patch
parente559de239715f629edc90b9a0afa57cb918b56ca (diff)
downloadmtk-20170518-d041e8b44b042d373b0b474ee69caed840f9a541.zip
mtk-20170518-d041e8b44b042d373b0b474ee69caed840f9a541.tar.gz
mtk-20170518-d041e8b44b042d373b0b474ee69caed840f9a541.tar.bz2
ramips: add linux 4.4 support, update mt7621 subtarget to 4.4
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48951
Diffstat (limited to 'target/linux/ramips/patches-4.4/0059-correct-CPC_BASE_MASK.patch')
-rw-r--r--target/linux/ramips/patches-4.4/0059-correct-CPC_BASE_MASK.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/ramips/patches-4.4/0059-correct-CPC_BASE_MASK.patch b/target/linux/ramips/patches-4.4/0059-correct-CPC_BASE_MASK.patch
new file mode 100644
index 0000000..11157bd
--- /dev/null
+++ b/target/linux/ramips/patches-4.4/0059-correct-CPC_BASE_MASK.patch
@@ -0,0 +1,13 @@
+--- a/arch/mips/include/asm/mips-cm.h
++++ b/arch/mips/include/asm/mips-cm.h
+@@ -286,8 +286,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)
+