diff options
author | Steve deRosier <derosier@gmail.com> | 2013-01-22 13:05:35 -0800 |
---|---|---|
committer | jason <jason@jason-ThinkPad-T61.(none)> | 2013-06-27 08:31:17 +0800 |
commit | 08dbd6ccd58a639fc2179ae472245e6e87042696 (patch) | |
tree | 6b0297debb53dd0495379792e6c228dbb191dcfa /arch/m68k | |
parent | aea5eee126eab0d49fd52da212e51d83749d30e7 (diff) | |
download | u-boot-imx-08dbd6ccd58a639fc2179ae472245e6e87042696.zip u-boot-imx-08dbd6ccd58a639fc2179ae472245e6e87042696.tar.gz u-boot-imx-08dbd6ccd58a639fc2179ae472245e6e87042696.tar.bz2 |
Fix MCF5235 SDRAM base address macro
SDRAMC_DARCn_BA() macro worked fine when the BA is 0x00000000 even
though the macro is incorrect. It causes the BA to be set incorrctly
for other base addresses. This patch fixes the macro so that base
addresses other than zero can be used with the MCF5235.
Signed-off-by: Steve deRosier <derosier@gmail.com>
Diffstat (limited to 'arch/m68k')
-rw-r--r-- | arch/m68k/include/asm/m5235.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m68k/include/asm/m5235.h b/arch/m68k/include/asm/m5235.h index 71a40d3..a573f1c 100644 --- a/arch/m68k/include/asm/m5235.h +++ b/arch/m68k/include/asm/m5235.h @@ -134,7 +134,7 @@ #define SDRAMC_DCR_RC(x) (((x)&0xFF)<<8) /* Bit definitions and macros for SDRAMC_DARCn */ -#define SDRAMC_DARCn_BA(x) (((x)&0xFFFC)<<18) +#define SDRAMC_DARCn_BA(x) ((x)&0xFFFC0000) #define SDRAMC_DARCn_RE (0x00008000) #define SDRAMC_DARCn_CASL_MASK (0x00003000) #define SDRAMC_DARCn_CASL_C0 (0x00000000) |