]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: mvebu: turris_omnia: move I2C dependencies to Kconfig
authorMarek Behún <marek.behun@nic.cz>
Thu, 2 May 2019 14:53:28 +0000 (16:53 +0200)
committerStefan Roese <sr@denx.de>
Fri, 3 May 2019 06:14:39 +0000 (08:14 +0200)
The I2C dependencies are defined in include/configs/turris_omnia.h,
because Turris Omnia won't boot correctly without I2C support.

Move these dependencies to Kconfig, so that they are selected if Turris
Omnia is selected as target.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Heiko Schocher <hs@denx.de>
Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Stefan Roese <sr@denx.de>
arch/arm/mach-mvebu/Kconfig
include/configs/turris_omnia.h

index f99bd3bf65672ee770ea10cd4d28fe7ad894e0bf..2bf829d10ade0b49198bed5c68994fa6758a76d2 100644 (file)
@@ -116,6 +116,11 @@ config TARGET_DB_88F6820_AMC
 config TARGET_TURRIS_OMNIA
        bool "Support Turris Omnia"
        select 88F6820
+       select DM_I2C
+       select I2C_MUX
+       select I2C_MUX_PCA954x
+       select SPL_I2C_MUX
+       select SYS_I2C_MVTWSI
 
 config TARGET_TURRIS_MOX
        bool "Support Turris Mox"
index c921badb6d9b19d09b2518ca79da4cc0bb077c77..8e0c7bf0b40352d4de4fcdf48a9cc3f52d9d215e 100644 (file)
  */
 #define CONFIG_SYS_TCLK                250000000       /* 250MHz */
 
-/*
- * Commands configuration
- */
-
-/* I2C support */
-#define CONFIG_DM_I2C
-#define CONFIG_I2C_MUX
-#define CONFIG_I2C_MUX_PCA954x
-#define CONFIG_SPL_I2C_MUX
-#define CONFIG_SYS_I2C_MVTWSI
-
 /* USB/EHCI configuration */
 #define CONFIG_EHCI_IS_TDI