spl: Introduce SPL_DM_SPI Kconfig define
authorLukasz Majewski <lukma@denx.de>
Mon, 9 Sep 2019 10:06:46 +0000 (12:06 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 11 Oct 2019 19:33:27 +0000 (15:33 -0400)
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>
common/spl/Kconfig

index 7862a01..562eafe 100644 (file)
@@ -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"