mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
dm: mmc: rpi: Convert Raspberry Pi to driver model for MMC
Convert the bcm2835 SDHCI driver over to support CONFIG_DM_MMC and move all boards over. There is no need to keep the old code since there are no other users. Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
c6606515f1
commit
e6c6d07e2c
6 changed files with 69 additions and 29 deletions
|
@ -466,19 +466,6 @@ int board_init(void)
|
|||
return bcm2835_power_on_module(BCM2835_MBOX_POWER_DEVID_USB_HCD);
|
||||
}
|
||||
|
||||
int board_mmc_init(bd_t *bis)
|
||||
{
|
||||
int ret;
|
||||
|
||||
bcm2835_power_on_module(BCM2835_MBOX_POWER_DEVID_SDHCI);
|
||||
|
||||
ret = bcm2835_get_mmc_clock();
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
return bcm2835_sdhci_init(BCM2835_SDHCI_BASE, ret);
|
||||
}
|
||||
|
||||
int ft_board_setup(void *blob, bd_t *bd)
|
||||
{
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue