summaryrefslogtreecommitdiff
path: root/arch/powerpc
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-11-19 18:45:12 -0500
committerTom Rini <trini@konsulko.com>2022-12-05 16:06:43 -0500
commitd58d0663cbaa6a1ff9a71cafe777a2346ef24dc6 (patch)
tree14f4b01053de01a64611fb3b7108d5ab3b44b7bc /arch/powerpc
parent060613f119837fafc7c90a5dcc1aa1bf81ff319b (diff)
Convert CONFIG_FSL_LBC to Kconfig
This converts the following to Kconfig: CONFIG_FSL_LBC Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/Kconfig4
-rw-r--r--arch/powerpc/include/asm/config.h8
2 files changed, 4 insertions, 8 deletions
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index cf93a7b1da..0fc4ceda00 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -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
diff --git a/arch/powerpc/include/asm/config.h b/arch/powerpc/include/asm/config.h
index b0ad7d7aa7..983c6f70cf 100644
--- a/arch/powerpc/include/asm/config.h
+++ b/arch/powerpc/include/asm/config.h
@@ -32,14 +32,6 @@
#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>