mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
dm: mmc: Allow disabling driver model in SPL
At present if U-Boot proper uses driver model for MMC, then SPL has to also. While this is desirable, it places a significant barrier to moving to driver model in some cases. For example, with a space-constrained SPL it may be necessary to enable CONFIG_SPL_OF_PLATDATA which involves adjusting some drivers. Add new SPL versions of the options for DM_MMC, DM_MMC_OPS and BLK. By default these follow their non-SPL versions, but this can be changed by boards which need it. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
committed by
Jaehoon Chung
parent
745a94f352
commit
c4d660d4d0
@@ -451,7 +451,7 @@ static void scsi_init_dev_desc_priv(struct blk_desc *dev_desc)
|
||||
dev_desc->product[0] = 0;
|
||||
dev_desc->revision[0] = 0;
|
||||
dev_desc->removable = false;
|
||||
#ifndef CONFIG_BLK
|
||||
#if !CONFIG_IS_ENABLED(BLK)
|
||||
dev_desc->block_read = scsi_read;
|
||||
dev_desc->block_write = scsi_write;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user