diff options
author | John Crispin <blogic@openwrt.org> | 2015-12-17 09:26:43 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-12-17 09:26:43 +0000 |
commit | bdbc340bee7d7fdea64efe61b71eba3f862204c0 (patch) | |
tree | 8ce054765191522493d6c085597826066f8d5e69 /target/linux/ramips | |
parent | b312384f7b7d7db9a0b2d2cb16232e7c6be4a89c (diff) | |
download | master-187ad058-bdbc340bee7d7fdea64efe61b71eba3f862204c0.tar.gz master-187ad058-bdbc340bee7d7fdea64efe61b71eba3f862204c0.tar.bz2 master-187ad058-bdbc340bee7d7fdea64efe61b71eba3f862204c0.zip |
ramips: mt7621: undo mips-cm probe hack to not wipe out memory regions
Since now we hopefully setup memory regions properly we no longer need this hack.
Tested and works on ubnt-erx.
Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47905 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips')
-rw-r--r-- | target/linux/ramips/patches-4.3/0062-remove-cm-memory-regions-cleanup-hack.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/target/linux/ramips/patches-4.3/0062-remove-cm-memory-regions-cleanup-hack.patch b/target/linux/ramips/patches-4.3/0062-remove-cm-memory-regions-cleanup-hack.patch new file mode 100644 index 0000000000..9013819492 --- /dev/null +++ b/target/linux/ramips/patches-4.3/0062-remove-cm-memory-regions-cleanup-hack.patch @@ -0,0 +1,20 @@ +--- a/arch/mips/kernel/mips-cm.c ++++ b/arch/mips/kernel/mips-cm.c +@@ -238,7 +238,7 @@ int mips_cm_probe(void) + write_gcr_base(base_reg); + + /* disable CM regions */ +-/* write_gcr_reg0_base(CM_GCR_REGn_BASE_BASEADDR_MSK); ++ write_gcr_reg0_base(CM_GCR_REGn_BASE_BASEADDR_MSK); + write_gcr_reg0_mask(CM_GCR_REGn_MASK_ADDRMASK_MSK); + write_gcr_reg1_base(CM_GCR_REGn_BASE_BASEADDR_MSK); + write_gcr_reg1_mask(CM_GCR_REGn_MASK_ADDRMASK_MSK); +@@ -246,7 +246,7 @@ int mips_cm_probe(void) + write_gcr_reg2_mask(CM_GCR_REGn_MASK_ADDRMASK_MSK); + write_gcr_reg3_base(CM_GCR_REGn_BASE_BASEADDR_MSK); + write_gcr_reg3_mask(CM_GCR_REGn_MASK_ADDRMASK_MSK); +-*/ ++ + /* probe for an L2-only sync region */ + mips_cm_probe_l2sync(); + |