immortalwrt/package/boot/uboot-rockchip/patches/101-spl-support-adc-drivers-in-spl.patch
Tianling Shen cc67e3798d
uboot-rockchip: Update to 2023.04
Removed upstream patches:
* 100-clk-rockchip-rk3568-fix-reset-handler.patch
* 103-rockchip-rk3568-add-boot-device-detection.patch
* 104-rockchip-rk3568-enable-automatic-clock-gating.patch
* 108-rockchip-sdram-add-basic-support-for-sdram-reg-info-versi.patch
* 109-rockchip-Align-FIT-image-data-to-SD-MMC-block-length.patch
* 110-hack-fix-build-rk356x-idbloader.patch

Refreshed all patches, dts and defconfigs.

=== NOTE ===
To compile with uboot-rockchip v2023.04 and higher, you must install
pyelftools on your build host.
e.g. `apt install python3-pyelftools` or `pip3 install pyelftools`

Tested-by: ZiMing Mo <msylgj@immortalwrt.org> [NanoPi R4S]
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2023-04-06 03:54:37 +08:00

41 lines
1.2 KiB
Diff

From: Peter Geis <pgwipeout@gmail.com>
Cc: Peter Geis <pgwipeout@gmail.com>, 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 <pgwipeout@gmail.com>
---
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/