[PATCH 12/18] mmc: Support driver model in TPL

Tom Rini trini at konsulko.com
Wed Sep 4 20:14:33 CEST 2024


On Tue, Aug 27, 2024 at 07:45:31PM -0600, Simon Glass wrote:

> Some boards want to use DM_MMC in TPL so add an option for that.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
> 
>  drivers/mmc/Kconfig | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
> 
> diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig
> index 982e84dc3bc..2b55ddb7af2 100644
> --- a/drivers/mmc/Kconfig
> +++ b/drivers/mmc/Kconfig
> @@ -61,6 +61,18 @@ config SPL_DM_MMC
>  	  appear as block devices in U-Boot and can support filesystems such
>  	  as EXT4 and FAT.
>  
> +config TPL_DM_MMC
> +	bool "Enable MMC controllers using Driver Model in TPL"
> +	depends on TPL_DM && DM_MMC
> +	default y

This shouldn't be "default y" as it's adding 128 bytes to TPL on a lot
of platforms.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20240904/e8f94467/attachment.sig>


More information about the U-Boot mailing list