aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ppc40x/patches/004-magicbox.patch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2010-04-16 18:40:02 +0000
committerGabor Juhos <juhosg@openwrt.org>2010-04-16 18:40:02 +0000
commite0ba83e32ecb3c016dd93b1e90e77476a2b691c6 (patch)
tree9dde739d3e08f8ffd9554a7137f97b71b8405016 /target/linux/ppc40x/patches/004-magicbox.patch
parent15d344df50c16ac51fe50fd8e7d7954c875b7419 (diff)
downloadupstream-e0ba83e32ecb3c016dd93b1e90e77476a2b691c6.tar.gz
upstream-e0ba83e32ecb3c016dd93b1e90e77476a2b691c6.tar.bz2
upstream-e0ba83e32ecb3c016dd93b1e90e77476a2b691c6.zip
ppc40x: add more EBC_BXCR defines
Cc: backfire@openwrt.org SVN-Revision: 20930
Diffstat (limited to 'target/linux/ppc40x/patches/004-magicbox.patch')
-rw-r--r--target/linux/ppc40x/patches/004-magicbox.patch8
1 files changed, 5 insertions, 3 deletions
diff --git a/target/linux/ppc40x/patches/004-magicbox.patch b/target/linux/ppc40x/patches/004-magicbox.patch
index 8de4a11b57..2797424211 100644
--- a/target/linux/ppc40x/patches/004-magicbox.patch
+++ b/target/linux/ppc40x/patches/004-magicbox.patch
@@ -1,6 +1,6 @@
--- /dev/null
+++ b/arch/powerpc/boot/cuboot-magicbox.c
-@@ -0,0 +1,96 @@
+@@ -0,0 +1,98 @@
+/*
+ * Old U-boot compatibility for Magicbox boards
+ *
@@ -44,13 +44,15 @@
+
+ /* PerCS1 (CF's CS0): base 0xff100000, 16-bit, rw */
+ mtdcr(DCRN_EBC0_CFGADDR, EBC_B1CR);
-+ mtdcr(DCRN_EBC0_CFGDATA, CF_CS0_BASE | EBC_BXCR_BU_RW | EBC_BXCR_BW_16);
++ mtdcr(DCRN_EBC0_CFGDATA, CF_CS0_BASE | EBC_BXCR_BS_1M |
++ EBC_BXCR_BU_RW | EBC_BXCR_BW_16);
+ mtdcr(DCRN_EBC0_CFGADDR, EBC_B1AP);
+ mtdcr(DCRN_EBC0_CFGDATA, 0x080bd800);
+
+ /* PerCS2 (CF's CS1): base 0xff200000, 16-bit, rw */
+ mtdcr(DCRN_EBC0_CFGADDR, EBC_B2CR);
-+ mtdcr(DCRN_EBC0_CFGDATA, CF_CS1_BASE | EBC_BXCR_BU_RW | EBC_BXCR_BW_16);
++ mtdcr(DCRN_EBC0_CFGDATA, CF_CS1_BASE | EBC_BXCR_BS_1M |
++ EBC_BXCR_BU_RW | EBC_BXCR_BW_16);
+ mtdcr(DCRN_EBC0_CFGADDR, EBC_B2AP);
+ mtdcr(DCRN_EBC0_CFGDATA, 0x080bd800);
+