diff options
author | Sebastian Reichel <sebastian.reichel@collabora.com> | 2020-09-02 19:31:44 +0200 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2020-11-01 15:58:47 +0100 |
commit | 987b8f614c066478aeb9b4ad869613ec23835fbc (patch) | |
tree | da7623879e770242ada8dc37f120272ddd638869 | |
parent | 36e3e7deb25773cf8ef2533612361490d175967f (diff) | |
download | u-boot-987b8f614c066478aeb9b4ad869613ec23835fbc.zip u-boot-987b8f614c066478aeb9b4ad869613ec23835fbc.tar.gz u-boot-987b8f614c066478aeb9b4ad869613ec23835fbc.tar.bz2 |
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>
-rw-r--r-- | board/ge/bx50v3/Kconfig | 2 | ||||
-rw-r--r-- | board/ge/common/Kconfig | 7 | ||||
-rw-r--r-- | board/ge/common/Makefile | 3 | ||||
-rw-r--r-- | board/ge/mx53ppd/Kconfig | 2 |
4 files changed, 13 insertions, 1 deletions
diff --git a/board/ge/bx50v3/Kconfig b/board/ge/bx50v3/Kconfig index 993b055..0593856 100644 --- a/board/ge/bx50v3/Kconfig +++ b/board/ge/bx50v3/Kconfig @@ -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 index 0000000..323ed1f --- /dev/null +++ b/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 diff --git a/board/ge/common/Makefile b/board/ge/common/Makefile index 36bedb1..8bd44e3 100644 --- a/board/ge/common/Makefile +++ b/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 diff --git a/board/ge/mx53ppd/Kconfig b/board/ge/mx53ppd/Kconfig index 6dc3818..bebb2fa 100644 --- a/board/ge/mx53ppd/Kconfig +++ b/board/ge/mx53ppd/Kconfig @@ -13,4 +13,6 @@ config SYS_SOC config SYS_CONFIG_NAME default "mx53ppd" +source "board/ge/common/Kconfig" + endif |