diff options
author | John Crispin <blogic@openwrt.org> | 2015-12-11 15:03:08 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-12-11 15:03:08 +0000 |
commit | 4c23e91205ca89ff84dddf641f9a43e358173554 (patch) | |
tree | f0589ed104cb42f59f0da6925d198d3f46c7a7d6 /target/linux | |
parent | 09efa742d7b133f082bde94ff1c97a59fb339f9c (diff) | |
download | master-187ad058-4c23e91205ca89ff84dddf641f9a43e358173554.tar.gz master-187ad058-4c23e91205ca89ff84dddf641f9a43e358173554.tar.bz2 master-187ad058-4c23e91205ca89ff84dddf641f9a43e358173554.zip |
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 <mar.kolya@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47840 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/ramips/patches-4.3/0059-correct-CPC_BASE_MASK.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/ramips/patches-4.3/0059-correct-CPC_BASE_MASK.patch b/target/linux/ramips/patches-4.3/0059-correct-CPC_BASE_MASK.patch new file mode 100644 index 0000000000..b267137187 --- /dev/null +++ b/target/linux/ramips/patches-4.3/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 +@@ -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) + |