From: Peter Geis Cc: Peter Geis , u-boot@lists.denx.de Subject: [PATCH v1 05/11] spl: support adc drivers in spl Date: Mon, 21 Feb 2022 20:31:24 -0500 [thread overview] Message-ID: <20220222013131.3114990-6-pgwipeout@gmail.com> (raw) In-Reply-To: <20220222013131.3114990-1-pgwipeout@gmail.com> In order to handle the rockchip recovery handler in spl, we need the adc code to be available in spl. Add a toggle to allow adc drivers to function in spl. Signed-off-by: Peter Geis --- common/spl/Kconfig | 5 +++++ drivers/Makefile | 1 + 2 files changed, 6 insertions(+) --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -587,6 +587,11 @@ config SPL_FIT_IMAGE_TINY ensure this information is available to the next image invoked). +config SPL_ADC + bool "Support ADC drivers in SPL" + help + Enable ADC drivers in SPL. + 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_)BLK) += block/ obj-$(CONFIG_$(SPL_TPL_)BOOTCOUNT_LIMIT) += bootcount/ obj-$(CONFIG_$(SPL_TPL_)BUTTON) += button/