projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ARM: bcm283x: Move BCM283x_BASE to a global variable
[oweals/u-boot.git]
/
arch
/
arm
/
mach-bcm283x
/
include
/
mach
/
sdhci.h
diff --git
a/arch/arm/mach-bcm283x/include/mach/sdhci.h
b/arch/arm/mach-bcm283x/include/mach/sdhci.h
index 2a21ccbf66baea64fb58b5be9d8ba9c46c0d9029..7323690687057a0c4715bc498273e39c54ddf358 100644
(file)
--- a/
arch/arm/mach-bcm283x/include/mach/sdhci.h
+++ b/
arch/arm/mach-bcm283x/include/mach/sdhci.h
@@
-1,17
+1,15
@@
+/* SPDX-License-Identifier: GPL-2.0 */
/*
* (C) Copyright 2012,2015 Stephen Warren
/*
* (C) Copyright 2012,2015 Stephen Warren
- *
- * SPDX-License-Identifier: GPL-2.0
*/
#ifndef _BCM2835_SDHCI_H_
#define _BCM2835_SDHCI_H_
*/
#ifndef _BCM2835_SDHCI_H_
#define _BCM2835_SDHCI_H_
-#ifdef CONFIG_BCM2836
-#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);
int bcm2835_sdhci_init(u32 regbase, u32 emmc_freq);