busybox 1.19.4 update patch
[openwrt.git] / target / linux / ppc40x / patches / 003-powerpc-add-EBC_BXCR-defines.patch
1 --- a/arch/powerpc/boot/dcr.h
2 +++ b/arch/powerpc/boot/dcr.h
3 @@ -49,6 +49,14 @@ static const unsigned long sdram_bxcr[]
4 #define EBC_BXCR(n) (n)
5 #define EBC_BXCR_BAS 0xfff00000
6 #define EBC_BXCR_BS 0x000e0000
7 +#define EBC_BXCR_BS_1M 0x00000000
8 +#define EBC_BXCR_BS_2M 0x00020000
9 +#define EBC_BXCR_BS_4M 0x00040000
10 +#define EBC_BXCR_BS_8M 0x00060000
11 +#define EBC_BXCR_BS_16M 0x00080000
12 +#define EBC_BXCR_BS_32M 0x000a0000
13 +#define EBC_BXCR_BS_64M 0x000c0000
14 +#define EBC_BXCR_BS_128M 0x000e0000
15 #define EBC_BXCR_BANK_SIZE(reg) \
16 (0x100000 << (((reg) & EBC_BXCR_BS) >> 17))
17 #define EBC_BXCR_BU 0x00018000
18 @@ -57,6 +65,9 @@ static const unsigned long sdram_bxcr[]
19 #define EBC_BXCR_BU_WO 0x00010000
20 #define EBC_BXCR_BU_RW 0x00018000
21 #define EBC_BXCR_BW 0x00006000
22 +#define EBC_BXCR_BW_8 0x00000000
23 +#define EBC_BXCR_BW_16 0x00002000
24 +#define EBC_BXCR_BW_32 0x00006000
25 #define EBC_B0AP 0x10
26 #define EBC_B1AP 0x11
27 #define EBC_B2AP 0x12
This page took 0.041544 seconds and 5 git commands to generate.