Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Stephen Warren | 552b4d4 | 2013-01-29 16:37:41 +0000 | [diff] [blame] | 2 | /* |
Stephen Warren | 8780f22 | 2015-02-16 12:16:14 -0700 | [diff] [blame] | 3 | * (C) Copyright 2012,2015 Stephen Warren |
Stephen Warren | 552b4d4 | 2013-01-29 16:37:41 +0000 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #ifndef _BCM2835_SDHCI_H_ |
| 7 | #define _BCM2835_SDHCI_H_ |
| 8 | |
Stephen Warren | 9d5990b | 2016-03-16 21:40:56 -0600 | [diff] [blame] | 9 | #ifndef CONFIG_BCM2835 |
Stephen Warren | 8780f22 | 2015-02-16 12:16:14 -0700 | [diff] [blame] | 10 | #define BCM2835_SDHCI_BASE 0x3f300000 |
| 11 | #else |
Stephen Warren | 552b4d4 | 2013-01-29 16:37:41 +0000 | [diff] [blame] | 12 | #define BCM2835_SDHCI_BASE 0x20300000 |
Stephen Warren | 8780f22 | 2015-02-16 12:16:14 -0700 | [diff] [blame] | 13 | #endif |
Stephen Warren | 552b4d4 | 2013-01-29 16:37:41 +0000 | [diff] [blame] | 14 | |
| 15 | int bcm2835_sdhci_init(u32 regbase, u32 emmc_freq); |
| 16 | |
| 17 | #endif |