mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 09:12:08 +02:00
blackfin: mmc: Correct mmc_host_is_spi and bfin_sdh.c
In the recent mmc cleanup, the mmc_host_is_spi macro was broken and bfin_sdh.c had mmc->bus_width turned into mmc_bus_width(mmc), both of which were incorrect. Signed-off-by: Tom Rini <trini@ti.com>
This commit is contained in:
@@ -238,7 +238,7 @@ static void bfin_sdh_set_ios(struct mmc *mmc)
|
|||||||
u16 cfg = 0;
|
u16 cfg = 0;
|
||||||
u16 clk_ctl = 0;
|
u16 clk_ctl = 0;
|
||||||
|
|
||||||
if (mmc_bus_width(mmc) == 4) {
|
if (mmc->bus_width == 4) {
|
||||||
cfg = bfin_read_SDH_CFG();
|
cfg = bfin_read_SDH_CFG();
|
||||||
#ifndef RSI_BLKSZ
|
#ifndef RSI_BLKSZ
|
||||||
cfg &= ~PD_SDDAT3;
|
cfg &= ~PD_SDDAT3;
|
||||||
|
@@ -360,7 +360,7 @@ void mmc_set_preinit(struct mmc *mmc, int preinit);
|
|||||||
|
|
||||||
#ifdef CONFIG_GENERIC_MMC
|
#ifdef CONFIG_GENERIC_MMC
|
||||||
#ifdef CONFIG_MMC_SPI
|
#ifdef CONFIG_MMC_SPI
|
||||||
#define mmc_host_is_spi(mmc) ((mmc)->cfg.host_caps & MMC_MODE_SPI)
|
#define mmc_host_is_spi(mmc) ((mmc)->cfg->host_caps & MMC_MODE_SPI)
|
||||||
#else
|
#else
|
||||||
#define mmc_host_is_spi(mmc) 0
|
#define mmc_host_is_spi(mmc) 0
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user