summaryrefslogtreecommitdiff
path: root/target/linux/ppc40x/patches-3.18/003-powerpc-add-EBC_BXCR-defines.patch
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2015-04-12 20:48:13 +0000
committerImre Kaloz <kaloz@openwrt.org>2015-04-12 20:48:13 +0000
commit09722d0bdcce6a021ec20bdefc158878ce49b8dc (patch)
tree6105c778c0aae2c0ddbafe2da57df7b93026b124 /target/linux/ppc40x/patches-3.18/003-powerpc-add-EBC_BXCR-defines.patch
parente55532b7af58979b92027d4194fe9e102c381ec7 (diff)
downloadmtk-20170518-09722d0bdcce6a021ec20bdefc158878ce49b8dc.zip
mtk-20170518-09722d0bdcce6a021ec20bdefc158878ce49b8dc.tar.gz
mtk-20170518-09722d0bdcce6a021ec20bdefc158878ce49b8dc.tar.bz2
ppc40x: upgrade to 3.18
left "broken" as I'm not sure if my only board is to blame.. testers welcomed Signed-off-by: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 45406
Diffstat (limited to 'target/linux/ppc40x/patches-3.18/003-powerpc-add-EBC_BXCR-defines.patch')
-rw-r--r--target/linux/ppc40x/patches-3.18/003-powerpc-add-EBC_BXCR-defines.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/target/linux/ppc40x/patches-3.18/003-powerpc-add-EBC_BXCR-defines.patch b/target/linux/ppc40x/patches-3.18/003-powerpc-add-EBC_BXCR-defines.patch
new file mode 100644
index 0000000..5c7329d
--- /dev/null
+++ b/target/linux/ppc40x/patches-3.18/003-powerpc-add-EBC_BXCR-defines.patch
@@ -0,0 +1,27 @@
+--- a/arch/powerpc/boot/dcr.h
++++ b/arch/powerpc/boot/dcr.h
+@@ -59,6 +59,14 @@ static const unsigned long sdram_bxcr[]
+ #define EBC_BXCR(n) (n)
+ #define EBC_BXCR_BAS 0xfff00000
+ #define EBC_BXCR_BS 0x000e0000
++#define EBC_BXCR_BS_1M 0x00000000
++#define EBC_BXCR_BS_2M 0x00020000
++#define EBC_BXCR_BS_4M 0x00040000
++#define EBC_BXCR_BS_8M 0x00060000
++#define EBC_BXCR_BS_16M 0x00080000
++#define EBC_BXCR_BS_32M 0x000a0000
++#define EBC_BXCR_BS_64M 0x000c0000
++#define EBC_BXCR_BS_128M 0x000e0000
+ #define EBC_BXCR_BANK_SIZE(reg) \
+ (0x100000 << (((reg) & EBC_BXCR_BS) >> 17))
+ #define EBC_BXCR_BU 0x00018000
+@@ -67,6 +75,9 @@ static const unsigned long sdram_bxcr[]
+ #define EBC_BXCR_BU_WO 0x00010000
+ #define EBC_BXCR_BU_RW 0x00018000
+ #define EBC_BXCR_BW 0x00006000
++#define EBC_BXCR_BW_8 0x00000000
++#define EBC_BXCR_BW_16 0x00002000
++#define EBC_BXCR_BW_32 0x00006000
+ #define EBC_B0AP 0x10
+ #define EBC_B1AP 0x11
+ #define EBC_B2AP 0x12