Convert CONFIG_FSL_LBC to Kconfig
authorTom Rini <trini@konsulko.com>
Sat, 19 Nov 2022 23:45:12 +0000 (18:45 -0500)
committerTom Rini <trini@konsulko.com>
Mon, 5 Dec 2022 21:06:43 +0000 (16:06 -0500)
This converts the following to Kconfig:
   CONFIG_FSL_LBC

Signed-off-by: Tom Rini <trini@konsulko.com>
arch/powerpc/Kconfig
arch/powerpc/include/asm/config.h

index cf93a7b..0fc4ced 100644 (file)
@@ -34,6 +34,10 @@ config MPC8xx
 
 endchoice
 
+config FSL_LBC
+       def_bool y
+       depends on (MPC85xx || MPC83xx) && !FSL_IFC
+
 config HIGH_BATS
        bool "Enable high BAT registers"
        help
index b0ad7d7..983c6f7 100644 (file)
 #define BPTR_VIRT_ADDR 0xfffff000
 #endif
 
-/* Since so many PPC SOCs have a semi-common LBC, define this here */
-#if defined(CONFIG_MPC85xx) || defined(CONFIG_MPC86xx) || \
-       defined(CONFIG_MPC83xx)
-#if !defined(CONFIG_FSL_IFC)
-#define CONFIG_FSL_LBC
-#endif
-#endif
-
 /* The TSEC driver uses the PHYLIB infrastructure */
 #if defined(CONFIG_TSEC_ENET) && defined(CONFIG_PHYLIB)
 #include <config_phylib_all_drivers.h>