]> git.baikalelectronics.ru Git - uboot.git/commitdiff
Convert CONFIG_KIRKWOOD_PCIE_INIT et al to Kconfig
authorTom Rini <trini@konsulko.com>
Mon, 20 Jun 2022 12:07:58 +0000 (08:07 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 5 Jul 2022 21:05:00 +0000 (17:05 -0400)
This converts the following to Kconfig:
   CONFIG_KIRKWOOD_EGIGA_INIT
   CONFIG_KIRKWOOD_PCIE_INIT
   CONFIG_KIRKWOOD_RGMII_PAD_1V8
   CONFIG_KM_DISABLE_PCIE

Signed-off-by: Tom Rini <trini@konsulko.com>
arch/arm/mach-kirkwood/Kconfig
arch/arm/mach-kirkwood/include/mach/config.h
configs/km_kirkwood_128m16_defconfig
configs/km_kirkwood_defconfig
configs/kmcoge5un_defconfig
include/configs/SBx81LIFKW.h
include/configs/SBx81LIFXCAT.h
include/configs/km_kirkwood.h

index ca2da003b65b71d7650e85147567ebd57eae6dd1..98bb10c2dee3dc554eacd8aef568cb5da8ceb735 100644 (file)
@@ -121,6 +121,18 @@ endchoice
 config SYS_SOC
        default "kirkwood"
 
+config KIRKWOOD_RGMII_PAD_1V8
+       bool "Configures the I/O voltage of the pads connected gigabit interface to 1.8V"
+       default y
+
+config KIRKWOOD_EGIGA_INIT
+       bool "Enable GbePort0/1 for kernel"
+       default y
+
+config KIRKWOOD_PCIE_INIT
+       bool "Enable PCIe Port0 for kernel"
+       default y
+
 source "board/Marvell/openrd/Kconfig"
 source "board/Marvell/dreamplug/Kconfig"
 source "board/Synology/ds109/Kconfig"
index ca341570544bb043cab116f02c216511a74c3007..90e86ab99b414d815069cdc6b3f074f6fb8ed8bf 100644 (file)
@@ -23,9 +23,6 @@
 #endif /* CONFIG_KW88F6281 */
 
 #include <asm/arch/soc.h>
-#define CONFIG_KIRKWOOD_EGIGA_INIT     /* Enable GbePort0/1 for kernel */
-#define CONFIG_KIRKWOOD_RGMII_PAD_1V8  /* Set RGMII Pad voltage to 1.8V */
-#define CONFIG_KIRKWOOD_PCIE_INIT       /* Enable PCIE Port0 for kernel */
 
 #define CONFIG_I2C_MVTWSI_BASE0        KW_TWSI_BASE
 #define MV_UART_CONSOLE_BASE   KW_UART0_BASE
index 1d8ae5876b9069f0202a56d76acfbbafa05fdac2..655759b09ce76a17573c239d7bbe87c88d424ea1 100644 (file)
@@ -7,6 +7,7 @@ CONFIG_SYS_KWD_CONFIG="board/keymile/km_arm/kwbimage_128M16_1.cfg"
 CONFIG_SYS_TEXT_BASE=0x07d00000
 CONFIG_SYS_MALLOC_F_LEN=0x400
 CONFIG_TARGET_KM_KIRKWOOD=y
+# CONFIG_KIRKWOOD_PCIE_INIT is not set
 CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_OFFSET=0x0
 CONFIG_DEFAULT_DEVICE_TREE="kirkwood-km_kirkwood"
index d2f2ff4e23e7a3991ed7944cc4cfdd6c103bfd87..65378d3cec16e0ed4b92720f9cdb598246062665 100644 (file)
@@ -7,6 +7,7 @@ CONFIG_SYS_KWD_CONFIG="board/keymile/km_arm/kwbimage.cfg"
 CONFIG_SYS_TEXT_BASE=0x07d00000
 CONFIG_SYS_MALLOC_F_LEN=0x400
 CONFIG_TARGET_KM_KIRKWOOD=y
+# CONFIG_KIRKWOOD_PCIE_INIT is not set
 CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_OFFSET=0x0
 CONFIG_DEFAULT_DEVICE_TREE="kirkwood-km_kirkwood"
index 9654b8d8060c6efa728dfb81c07e03b7fca39784..8b54f9c7c8429b25fcc4815995b81f8fa20bbf9a 100644 (file)
@@ -7,6 +7,7 @@ CONFIG_SYS_KWD_CONFIG="board/keymile/km_arm/kwbimage_256M8_1.cfg"
 CONFIG_SYS_TEXT_BASE=0x07d00000
 CONFIG_SYS_MALLOC_F_LEN=0x400
 CONFIG_TARGET_KM_KIRKWOOD=y
+# CONFIG_KIRKWOOD_PCIE_INIT is not set
 CONFIG_ENV_SIZE=0x2000
 CONFIG_ENV_OFFSET=0xC0000
 CONFIG_ENV_SECT_SIZE=0x10000
index 8114373655f36015c3c15a174d3b3619c76e1843..e42e6d56532fd6e3497e7a6d13dd742de928abf1 100644 (file)
@@ -9,10 +9,6 @@
 /* additions for new ARM relocation support */
 #define CONFIG_SYS_SDRAM_BASE  0x00000000
 
-#define CONFIG_KIRKWOOD_EGIGA_INIT     /* Enable GbePort0/1 for kernel */
-#define CONFIG_KIRKWOOD_PCIE_INIT      /* Enable PCIE Port0 */
-#define CONFIG_KIRKWOOD_RGMII_PAD_1V8  /* Set RGMII Pad voltage to 1.8V */
-
 /*
  * NS16550 Configuration
  */
index b70829c09d58807e4e58a17d54557b4c02603ebe..8926c26b0bdfcf4bf8930131db0f8b9060173eb7 100644 (file)
@@ -9,10 +9,6 @@
 /* additions for new ARM relocation support */
 #define CONFIG_SYS_SDRAM_BASE  0x00000000
 
-#define CONFIG_KIRKWOOD_EGIGA_INIT     /* Enable GbePort0/1 for kernel */
-#define CONFIG_KIRKWOOD_PCIE_INIT      /* Enable PCIE Port0 */
-#define CONFIG_KIRKWOOD_RGMII_PAD_1V8  /* Set RGMII Pad voltage to 1.8V */
-
 /*
  * NS16550 Configuration
  */
index e58a69501b3327673648840b43c6d56207ba021b..01482d5319969444c341523f747f9e621f9f6506 100644 (file)
@@ -23,7 +23,6 @@
 /* KM_KIRKWOOD */
 #if defined(CONFIG_KM_KIRKWOOD)
 #define CONFIG_HOSTNAME                        "km_kirkwood"
-#define CONFIG_KM_DISABLE_PCIE
 
 /* KM_KIRKWOOD_PCI */
 #elif defined(CONFIG_KM_KIRKWOOD_PCI)
@@ -34,7 +33,6 @@
 /* KM_KIRKWOOD_128M16 */
 #elif defined(CONFIG_KM_KIRKWOOD_128M16)
 #define CONFIG_HOSTNAME                        "km_kirkwood_128m16"
-#define CONFIG_KM_DISABLE_PCIE
 
 /* KM_NUSA */
 #elif defined(CONFIG_KM_NUSA)
@@ -44,7 +42,6 @@
 /* KMCOGE5UN */
 #elif defined(CONFIG_KM_COGE5UN)
 #define CONFIG_HOSTNAME                        "kmcoge5un"
-#define CONFIG_KM_DISABLE_PCIE
 
 /* KM_SUSE2 */
 #elif defined(CONFIG_KM_SUSE2)
        MVGBE_SET_MII_SPEED_TO_100)
 #endif
 
-#ifdef CONFIG_KM_DISABLE_PCIE
-#undef  CONFIG_KIRKWOOD_PCIE_INIT
-#endif
-
 #endif /* _CONFIG_KM_KIRKWOOD */