mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-27 07:51:38 +00:00
dm: adc: Add SPL_ADC Kconfig symbol for use of ADC in SPL
What model of Radxa ZERO 3W/3E board can be identified using ADC at runtime, add a Kconfig symbol to allow use of ADC in SPL. This will be used to identify board model in SPL to allow loading correct FIT configuration and FDT for U-Boot proper at SPL phase. Signed-off-by: Jonas Karlman <jonas@kwiboo.se> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
This commit is contained in:
parent
d3c5244753
commit
232af1e58a
3 changed files with 7 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
||||||
# SPDX-License-Identifier: GPL-2.0+
|
# SPDX-License-Identifier: GPL-2.0+
|
||||||
|
|
||||||
|
obj-$(CONFIG_$(SPL_TPL_)ADC) += adc/
|
||||||
obj-$(CONFIG_$(SPL_TPL_)BIOSEMU) += bios_emulator/
|
obj-$(CONFIG_$(SPL_TPL_)BIOSEMU) += bios_emulator/
|
||||||
obj-$(CONFIG_$(SPL_TPL_)BLK) += block/
|
obj-$(CONFIG_$(SPL_TPL_)BLK) += block/
|
||||||
obj-$(CONFIG_$(SPL_TPL_)BOOTCOUNT_LIMIT) += bootcount/
|
obj-$(CONFIG_$(SPL_TPL_)BOOTCOUNT_LIMIT) += bootcount/
|
||||||
|
@ -81,7 +82,6 @@ endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
|
ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
|
||||||
|
|
||||||
obj-y += adc/
|
|
||||||
obj-y += ata/
|
obj-y += ata/
|
||||||
obj-$(CONFIG_DM_DEMO) += demo/
|
obj-$(CONFIG_DM_DEMO) += demo/
|
||||||
obj-y += block/
|
obj-y += block/
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
config ADC
|
config ADC
|
||||||
bool "Enable ADC drivers using Driver Model"
|
bool "Enable ADC drivers using Driver Model"
|
||||||
|
depends on DM
|
||||||
help
|
help
|
||||||
This enables ADC API for drivers, which allows driving ADC features
|
This enables ADC API for drivers, which allows driving ADC features
|
||||||
by single and multi-channel methods for:
|
by single and multi-channel methods for:
|
||||||
|
@ -11,6 +12,10 @@ config ADC
|
||||||
- support supply's phandle with auto-enable
|
- support supply's phandle with auto-enable
|
||||||
- supply polarity setting in fdt
|
- supply polarity setting in fdt
|
||||||
|
|
||||||
|
config SPL_ADC
|
||||||
|
bool "Enable ADC drivers using Driver Model in SPL"
|
||||||
|
depends on SPL_DM
|
||||||
|
|
||||||
config ADC_EXYNOS
|
config ADC_EXYNOS
|
||||||
bool "Enable Exynos 54xx ADC driver"
|
bool "Enable Exynos 54xx ADC driver"
|
||||||
depends on ADC
|
depends on ADC
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
# Przemyslaw Marczak <p.marczak@samsung.com>
|
# Przemyslaw Marczak <p.marczak@samsung.com>
|
||||||
#
|
#
|
||||||
|
|
||||||
obj-$(CONFIG_ADC) += adc-uclass.o
|
obj-$(CONFIG_$(SPL_TPL_)ADC) += adc-uclass.o
|
||||||
obj-$(CONFIG_ADC_EXYNOS) += exynos-adc.o
|
obj-$(CONFIG_ADC_EXYNOS) += exynos-adc.o
|
||||||
obj-$(CONFIG_ADC_SANDBOX) += sandbox.o
|
obj-$(CONFIG_ADC_SANDBOX) += sandbox.o
|
||||||
obj-$(CONFIG_SARADC_ROCKCHIP) += rockchip-saradc.o
|
obj-$(CONFIG_SARADC_ROCKCHIP) += rockchip-saradc.o
|
||||||
|
|
Loading…
Add table
Reference in a new issue