58 lines
1.8 KiB
Diff
58 lines
1.8 KiB
Diff
From: Chris Morgan <macroalpha82@gmail.com>
|
|
To: u-boot@lists.denx.de
|
|
Cc: andre.przywara@arm.com, kever.yang@rock-chips.com,
|
|
philipp.tomsich@vrull.eu, sjg@chromium.org, jagan@edgeble.ai,
|
|
jonas@kwiboo.se, Chris Morgan <macromorgan@hotmail.com>
|
|
Subject: [PATCH V4 2/7] spl: Add Kconfig options for ADC
|
|
Date: Tue, 2 Jan 2024 09:46:49 -0600 [thread overview]
|
|
Message-ID: <20240102154654.191055-3-macroalpha82@gmail.com> (raw)
|
|
In-Reply-To: <20240102154654.191055-1-macroalpha82@gmail.com>
|
|
|
|
From: Chris Morgan <macromorgan@hotmail.com>
|
|
|
|
Add kconfig options to enable ADC in SPL
|
|
|
|
Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
|
|
---
|
|
common/spl/Kconfig | 7 +++++++
|
|
drivers/Makefile | 1 +
|
|
drivers/adc/Makefile | 2 +-
|
|
3 files changed, 9 insertions(+), 1 deletion(-)
|
|
|
|
--- a/common/spl/Kconfig
|
|
+++ b/common/spl/Kconfig
|
|
@@ -595,6 +595,13 @@ config SPL_FIT_IMAGE_TINY
|
|
ensure this information is available to the next image
|
|
invoked).
|
|
|
|
+config SPL_ADC
|
|
+ bool "Support ADC drivers"
|
|
+ help
|
|
+ Enable ADC drivers in SPL. These drivers can allow the reading of
|
|
+ analog values from one or more channels. Enable this option to
|
|
+ build the drivers in drivers/adc as part of an SPL build.
|
|
+
|
|
config SPL_CACHE
|
|
bool "Support CACHE drivers"
|
|
help
|
|
--- a/drivers/Makefile
|
|
+++ b/drivers/Makefile
|
|
@@ -1,5 +1,6 @@
|
|
# SPDX-License-Identifier: GPL-2.0+
|
|
|
|
+obj-$(CONFIG_$(SPL_)ADC) += adc/
|
|
obj-$(CONFIG_$(SPL_TPL_)BIOSEMU) += bios_emulator/
|
|
obj-$(CONFIG_$(SPL_TPL_)BLK) += block/
|
|
obj-$(CONFIG_$(SPL_TPL_)BOOTCOUNT_LIMIT) += bootcount/
|
|
--- a/drivers/adc/Makefile
|
|
+++ b/drivers/adc/Makefile
|
|
@@ -4,7 +4,7 @@
|
|
# Przemyslaw Marczak <p.marczak@samsung.com>
|
|
#
|
|
|
|
-obj-$(CONFIG_ADC) += adc-uclass.o
|
|
+obj-$(CONFIG_$(SPL_)ADC) += adc-uclass.o
|
|
obj-$(CONFIG_ADC_EXYNOS) += exynos-adc.o
|
|
obj-$(CONFIG_ADC_SANDBOX) += sandbox.o
|
|
obj-$(CONFIG_SARADC_ROCKCHIP) += rockchip-saradc.o
|