board: ge: common: add config option for RTC and VPD feature
authorSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 2 Sep 2020 17:31:44 +0000 (19:31 +0200)
committerStefano Babic <sbabic@denx.de>
Sun, 1 Nov 2020 14:58:47 +0000 (15:58 +0100)
While this code is being used by all GE platforms its useful
to have it behind a config option for hardware bringup of
new platforms.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
board/ge/bx50v3/Kconfig
board/ge/common/Kconfig [new file with mode: 0644]
board/ge/common/Makefile
board/ge/mx53ppd/Kconfig

index 993b055..0593856 100644 (file)
@@ -15,4 +15,6 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "ge_bx50v3"
 
+source "board/ge/common/Kconfig"
+
 endif
diff --git a/board/ge/common/Kconfig b/board/ge/common/Kconfig
new file mode 100644 (file)
index 0000000..323ed1f
--- /dev/null
@@ -0,0 +1,7 @@
+config GE_VPD
+       bool "Enable GE VPD Support"
+       default y
+
+config GE_RTC
+       bool "Enable GE RTC Support"
+       default y
index 36bedb1..8bd44e3 100644 (file)
@@ -2,4 +2,5 @@
 #
 # Copyright 2017 General Electric Company
 
-obj-y  := vpd_reader.o ge_rtc.o
+obj-$(CONFIG_GE_VPD)  += vpd_reader.o
+obj-$(CONFIG_GE_RTC)  += ge_rtc.o
index 6dc3818..bebb2fa 100644 (file)
@@ -13,4 +13,6 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "mx53ppd"
 
+source "board/ge/common/Kconfig"
+
 endif