diff options
author | Yinbo Zhu <yinbo.zhu@nxp.com> | 2019-06-11 14:29:03 +0800 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2019-07-15 13:32:25 -0500 |
commit | 4db6e790bab644f105fcacc98744286ac461b588 (patch) | |
tree | 663bba7cbf157045dc5536c87093c38eaf64d5ed /drivers/net/phy/cortina.c | |
parent | 61243678c2ffe39b23ac73adb9b42c3d317817ce (diff) | |
download | u-boot-4db6e790bab644f105fcacc98744286ac461b588.tar.gz |
net: phy: cortina: Use block layer to read from mmc
This patch is to use block layer to read from mmc in cortina
Signed-off-by: Yinbo Zhu <yinbo.zhu@nxp.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/net/phy/cortina.c')
-rw-r--r-- | drivers/net/phy/cortina.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/phy/cortina.c b/drivers/net/phy/cortina.c index a04a118f90..ec81dab3f6 100644 --- a/drivers/net/phy/cortina.c +++ b/drivers/net/phy/cortina.c @@ -176,8 +176,13 @@ void cs4340_upload_firmware(struct phy_device *phydev) printf("MMC read: dev # %u, block # %u, count %u ...\n", dev, blk, cnt); mmc_init(mmc); +#ifdef CONFIG_BLK + (void)blk_dread(mmc_get_blk_desc(mmc), blk, cnt, + addr); +#else (void)mmc->block_dev.block_read(&mmc->block_dev, blk, cnt, addr); +#endif } #endif |