Browse Source

board: ge: common: add config option for RTC and VPD feature

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>
Sebastian Reichel 3 years ago
parent
commit
987b8f614c
4 changed files with 13 additions and 1 deletions
  1. 2 0
      board/ge/bx50v3/Kconfig
  2. 7 0
      board/ge/common/Kconfig
  3. 2 1
      board/ge/common/Makefile
  4. 2 0
      board/ge/mx53ppd/Kconfig

+ 2 - 0
board/ge/bx50v3/Kconfig

@@ -15,4 +15,6 @@ config SYS_SOC
 config SYS_CONFIG_NAME
 	default "ge_bx50v3"
 
+source "board/ge/common/Kconfig"
+
 endif

+ 7 - 0
board/ge/common/Kconfig

@@ -0,0 +1,7 @@
+config GE_VPD
+	bool "Enable GE VPD Support"
+	default y
+
+config GE_RTC
+	bool "Enable GE RTC Support"
+	default y

+ 2 - 1
board/ge/common/Makefile

@@ -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

+ 2 - 0
board/ge/mx53ppd/Kconfig

@@ -13,4 +13,6 @@ config SYS_SOC
 config SYS_CONFIG_NAME
 	default "mx53ppd"
 
+source "board/ge/common/Kconfig"
+
 endif