ramips: fix subtarget kernel version assignment (only mt7621 is ready for now)
[openwrt.git] / target / linux / ramips / patches-4.3 / 0059-correct-CPC_BASE_MASK.patch
1 --- a/arch/mips/include/asm/mips-cm.h
2 +++ b/arch/mips/include/asm/mips-cm.h
3 @@ -270,8 +270,8 @@ BUILD_CM_Cx_R_(tcid_8_priority,     0x80)
4  #define CM_GCR_GIC_BASE_GICEN_MSK              (_ULCAST_(0x1) << 0)
5  
6  /* GCR_CPC_BASE register fields */
7 -#define CM_GCR_CPC_BASE_CPCBASE_SHF            17
8 -#define CM_GCR_CPC_BASE_CPCBASE_MSK            (_ULCAST_(0x7fff) << 17)
9 +#define CM_GCR_CPC_BASE_CPCBASE_SHF            15
10 +#define CM_GCR_CPC_BASE_CPCBASE_MSK            (_ULCAST_(0x1ffff) << 15)
11  #define CM_GCR_CPC_BASE_CPCEN_SHF              0
12  #define CM_GCR_CPC_BASE_CPCEN_MSK              (_ULCAST_(0x1) << 0)
13