ARM: bcm283x: Move BCM283x_BASE to a global variable
[oweals/u-boot.git] / arch / arm / mach-bcm283x / include / mach / sdhci.h
index 5cb6ec3340ace46bef4e884ae5f7e056abb594d5..7323690687057a0c4715bc498273e39c54ddf358 100644 (file)
@@ -6,11 +6,10 @@
 #ifndef _BCM2835_SDHCI_H_
 #define _BCM2835_SDHCI_H_
 
-#ifndef CONFIG_BCM2835
-#define BCM2835_SDHCI_BASE 0x3f300000
-#else
-#define BCM2835_SDHCI_BASE 0x20300000
-#endif
+#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);