ARM: bcm283x: Move BCM283x_BASE to a global variable
[oweals/u-boot.git] / arch / arm / mach-bcm283x / include / mach / sdhci.h
index b443c379d8cfb592f9e066934aa78461b1505f2f..7323690687057a0c4715bc498273e39c54ddf358 100644 (file)
@@ -6,7 +6,10 @@
 #ifndef _BCM2835_SDHCI_H_
 #define _BCM2835_SDHCI_H_
 
-#define BCM2835_SDHCI_BASE (CONFIG_BCM283x_BASE + 0x00300000)
+#include <asm/arch/base.h>
+
+#define BCM2835_SDHCI_PHYSADDR ({ BUG_ON(!rpi_bcm283x_base); \
+                                 rpi_bcm283x_base + 0x00300000; })
 
 int bcm2835_sdhci_init(u32 regbase, u32 emmc_freq);