]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
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 993b0559302b717cd10be12dbd8235f1bdc70144..05938560abdadda08989f9506a51cf271365e7bb 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 36bedb198077c740daca8690ddb0111dab494c97..8bd44e3c8a0f9139473512d7e233713c99c086fc 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 6dc3818cb7bb212a236542d66272a5c508195e92..bebb2fab0173d9794fd67818666709f2a157e825 100644 (file)
@@ -13,4 +13,6 @@ config SYS_SOC
 config SYS_CONFIG_NAME
        default "mx53ppd"
 
+source "board/ge/common/Kconfig"
+
 endif