From 789bb9537a4427798e3e28ff0c6be2c27454315f Mon Sep 17 00:00:00 2001
From: Tom Rini <trini@konsulko.com>
Date: Wed, 16 Nov 2022 13:10:32 -0500
Subject: [PATCH] Convert CONFIG_SYS_OMAP_ABE_SYSCK to Kconfig

This converts the following to Kconfig:
   CONFIG_SYS_OMAP_ABE_SYSCK

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
---
 arch/arm/mach-omap2/Kconfig       | 3 +++
 arch/arm/mach-omap2/omap5/Kconfig | 1 +
 include/configs/am57xx_evm.h      | 2 --
 include/configs/dra7xx_evm.h      | 2 --
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig
index 78317e474d..3bf9720522 100644
--- a/arch/arm/mach-omap2/Kconfig
+++ b/arch/arm/mach-omap2/Kconfig
@@ -144,6 +144,9 @@ config SYS_MPUCLK
 	help
 	  Defines the MPU clock speed (in MHz).
 
+config SYS_OMAP_ABE_SYSCK
+	bool
+
 config TI_SECURE_EMIF_REGION_START
 	hex "Reserved EMIF region start address"
 	depends on TI_SECURE_DEVICE
diff --git a/arch/arm/mach-omap2/omap5/Kconfig b/arch/arm/mach-omap2/omap5/Kconfig
index 4c2f990b28..18a6676422 100644
--- a/arch/arm/mach-omap2/omap5/Kconfig
+++ b/arch/arm/mach-omap2/omap5/Kconfig
@@ -2,6 +2,7 @@ if OMAP54XX
 
 config DRA7XX
 	bool
+	select SYS_OMAP_ABE_SYSCK
 	help
 	  DRA7xx is an OMAP based SOC with Dual Core A-15s.
 
diff --git a/include/configs/am57xx_evm.h b/include/configs/am57xx_evm.h
index c3b6a3fbda..84555f3b13 100644
--- a/include/configs/am57xx_evm.h
+++ b/include/configs/am57xx_evm.h
@@ -20,8 +20,6 @@
 #define CFG_SYS_NS16550_COM2		UART2_BASE	/* UART2 */
 #define CFG_SYS_NS16550_COM3		UART3_BASE	/* UART3 */
 
-#define CONFIG_SYS_OMAP_ABE_SYSCK
-
 #ifndef CONFIG_SPL_BUILD
 #define DFUARGS \
 	"dfu_bufsiz=0x10000\0" \
diff --git a/include/configs/dra7xx_evm.h b/include/configs/dra7xx_evm.h
index e1d18a7783..bb335a0a47 100644
--- a/include/configs/dra7xx_evm.h
+++ b/include/configs/dra7xx_evm.h
@@ -31,8 +31,6 @@
 #define CFG_SYS_NS16550_COM2		UART2_BASE	/* UART2 */
 #define CFG_SYS_NS16550_COM3		UART3_BASE	/* UART3 */
 
-#define CONFIG_SYS_OMAP_ABE_SYSCK
-
 #ifndef CONFIG_SPL_BUILD
 #define DFUARGS \
 	"dfu_bufsiz=0x10000\0" \
-- 
2.39.5