diff options
author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-02-21 19:23:29 +0000 |
---|---|---|
committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2013-02-21 19:23:29 +0000 |
commit | 899456cf34585d0411de6592969f9bb7d75577ab (patch) | |
tree | 6c8af9a7558cde468943821968b1f2d67702ff19 /target/linux/ppc40x/patches-3.8/003-powerpc-add-EBC_BXCR-defines.patch | |
parent | 857ed741ec49f84a6e47e55df8e76fa6c0208f80 (diff) |
ppc40x: add support for 3.8
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35734 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ppc40x/patches-3.8/003-powerpc-add-EBC_BXCR-defines.patch')
-rw-r--r-- | target/linux/ppc40x/patches-3.8/003-powerpc-add-EBC_BXCR-defines.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/target/linux/ppc40x/patches-3.8/003-powerpc-add-EBC_BXCR-defines.patch b/target/linux/ppc40x/patches-3.8/003-powerpc-add-EBC_BXCR-defines.patch new file mode 100644 index 0000000000..660b8bcd49 --- /dev/null +++ b/target/linux/ppc40x/patches-3.8/003-powerpc-add-EBC_BXCR-defines.patch @@ -0,0 +1,27 @@ +--- a/arch/powerpc/boot/dcr.h ++++ b/arch/powerpc/boot/dcr.h +@@ -55,6 +55,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 +@@ -63,6 +71,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 |