summaryrefslogtreecommitdiff
path: root/include/asm-ppc/ppc4xx-sdram.h
diff options
context:
space:
mode:
authorMarkus Klotzbuecher <mk@denx.de>2008-07-10 16:03:26 +0200
committerMarkus Klotzbuecher <mk@denx.de>2008-07-10 16:03:26 +0200
commit262423955895ba4599fa11d7c49dcffb65af0afd (patch)
tree59d35abf0b661bef68018e2137c174db0309bc22 /include/asm-ppc/ppc4xx-sdram.h
parent794a5924972fc8073616e98a2668da4a5f9aea90 (diff)
parente0320b1ebec13755911a53b0af12cbf3e5e49a65 (diff)
downloadu-boot-imx-262423955895ba4599fa11d7c49dcffb65af0afd.zip
u-boot-imx-262423955895ba4599fa11d7c49dcffb65af0afd.tar.gz
u-boot-imx-262423955895ba4599fa11d7c49dcffb65af0afd.tar.bz2
Merge branch 'master' of git://www.denx.de/git/u-boot
Diffstat (limited to 'include/asm-ppc/ppc4xx-sdram.h')
-rw-r--r--include/asm-ppc/ppc4xx-sdram.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-ppc/ppc4xx-sdram.h b/include/asm-ppc/ppc4xx-sdram.h
index 83931f1..e151f0c 100644
--- a/include/asm-ppc/ppc4xx-sdram.h
+++ b/include/asm-ppc/ppc4xx-sdram.h
@@ -284,8 +284,8 @@
#if defined(CONFIG_440SPE) || \
defined(CONFIG_460EX) || defined(CONFIG_460GT)
#define SDRAM_RXBAS_SDBA_MASK 0xFFE00000 /* Base address */
-#define SDRAM_RXBAS_SDBA_ENCODE(n) ((((u32)(n))&0xFFE00000)>>2)
-#define SDRAM_RXBAS_SDBA_DECODE(n) ((((u32)(n))&0xFFE00000)<<2)
+#define SDRAM_RXBAS_SDBA_ENCODE(n) ((u32)(((phys_size_t)(n) >> 2) & 0xFFE00000))
+#define SDRAM_RXBAS_SDBA_DECODE(n) ((((phys_size_t)(n)) & 0xFFE00000) << 2)
#endif /* CONFIG_440SPE */
#if defined(CONFIG_440SP)
#define SDRAM_RXBAS_SDBA_MASK 0xFF800000 /* Base address */