From 6d7bfb658e6dccbf2c82981558239685cb664b29 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Marek=20Beh=C3=BAn?= <marek.behun@nic.cz>
Date: Sat, 9 Oct 2021 19:33:46 +0200
Subject: [PATCH] arm: mvebu: turris_omnia: Move CONFIG_SPL_DRIVERS_MISC to
 Kconfig
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit

Instead of declaring CONFIG_SPL_DRIVERS_MISC in board config header,
select it in Kconfig.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
---
 arch/arm/mach-mvebu/Kconfig    | 1 +
 include/configs/turris_omnia.h | 1 -
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-mvebu/Kconfig b/arch/arm/mach-mvebu/Kconfig
index 8365305733..c66dab6012 100644
--- a/arch/arm/mach-mvebu/Kconfig
+++ b/arch/arm/mach-mvebu/Kconfig
@@ -127,6 +127,7 @@ config TARGET_TURRIS_OMNIA
 	select DM_I2C
 	select I2C_MUX
 	select I2C_MUX_PCA954x
+	select SPL_DRIVERS_MISC
 	select SPL_I2C_MUX
 	select SPL_SYS_MALLOC_SIMPLE
 	select SYS_I2C_MVTWSI
diff --git a/include/configs/turris_omnia.h b/include/configs/turris_omnia.h
index 273ff85ff3..9436a623d6 100644
--- a/include/configs/turris_omnia.h
+++ b/include/configs/turris_omnia.h
@@ -35,7 +35,6 @@
 
 #define CONFIG_SPL_STACK		(0x40000000 + ((192 - 16) << 10))
 #define CONFIG_SPL_BOOTROM_SAVE		(CONFIG_SPL_STACK + 4)
-#define CONFIG_SPL_DRIVERS_MISC
 
 #ifdef CONFIG_MVEBU_SPL_BOOT_DEVICE_MMC
 /* SPL related MMC defines */
-- 
2.39.5