mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
mmc: Introduce mmc_phys_to_bus()/mmc_bus_to_phys()
This will allow us to use DM variants of phys_to_bus()/bus_to_phys() when relevant. Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de> Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Peter Robinson <pbrobinson@gmail.com> Signed-off-by: Matthias Brugger <mbrugger@suse.com>
This commit is contained in:
committed by
Matthias Brugger
parent
1a474559d9
commit
c89c96d322
@@ -736,6 +736,12 @@ struct mmc {
|
||||
u8 hs400_tuning;
|
||||
};
|
||||
|
||||
#if CONFIG_IS_ENABLED(DM_MMC)
|
||||
#define mmc_to_dev(_mmc) _mmc->dev
|
||||
#else
|
||||
#define mmc_to_dev(_mmc) NULL
|
||||
#endif
|
||||
|
||||
struct mmc_hwpart_conf {
|
||||
struct {
|
||||
uint enh_start; /* in 512-byte sectors */
|
||||
|
Reference in New Issue
Block a user