From: Lukasz Majewski <lukma@denx.de>
Date: Mon, 9 Sep 2019 10:06:46 +0000 (+0200)
Subject: spl: Introduce SPL_DM_SPI Kconfig define
X-Git-Tag: v2025.01-rc5-pxa1908~2752^2~4
X-Git-Url: http://git.dujemihanovic.xyz/img/static/git-favicon.png?a=commitdiff_plain;h=f18845c27ad86e118b074ce545ce685cb9a97561;p=u-boot.git

spl: Introduce SPL_DM_SPI Kconfig define

This define indicates if DM_SPI shall be supported in SPL. This allows
proper operation of DM converted SPI drivers in SPL, which use
#if !CONFIG_IS_ENABLED(DM_SPI) to also support not yet DM/DTS converted
boards.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
---

diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 7862a0128c..562eafe2e5 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -697,6 +697,13 @@ config SPL_UBI
 	  Enable support for loading payloads from UBI. See
 	  README.ubispl for more info.
 
+if SPL_DM
+config SPL_DM_SPI
+	bool "Support SPI DM drivers in SPL"
+	help
+	  Enable support for SPI DM drivers in SPL.
+
+endif
 if SPL_UBI
 config SPL_UBI_LOAD_BY_VOLNAME
 	bool "Support loading volumes by name"