From: Kory Maincent Date: Tue, 2 Mar 2021 10:58:10 +0100 Subject: [PATCH v2 09/12] arm: mach-sunxi: add configuration for the CHIP to enable w1 In-Reply-To: <20210302095813.3273-1-kory.maincent@bootlin.com> References: <20210302095813.3273-1-kory.maincent@bootlin.com> Message-ID: <20210302095813.3273-10-kory.maincent@bootlin.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de The CHIP board use one-wire EEPROM to discover and identify extension boards (called "DIPs"). This commit add a Kconfig configuration for the CHIP board to enable the EEPROM one-wire driver. Signed-off-by: Kory Maincent --- Need the following patches series to fix a one-wire gpio issue. https://lists.denx.de/pipermail/u-boot/2021-February/440073.html Change since v1: - Replace TARGET_CHIP options by CHIP_DIP_SCAN arch/arm/mach-sunxi/Kconfig | 7 +++++++ configs/CHIP_defconfig | 1 + 2 files changed, 8 insertions(+) diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig index 49ef217f08..4160d52501 100644 --- a/arch/arm/mach-sunxi/Kconfig +++ b/arch/arm/mach-sunxi/Kconfig @@ -1017,3 +1017,10 @@ config PINEPHONE_DT_SELECTION correct PinePhone hardware revision during boot. endif + +config CHIP_DIP_SCAN + bool "Enable DIPs detection for CHIP board" + select W1 + select W1_GPIO + select W1_EEPROM + select W1_EEPROM_DS24XXX diff --git a/configs/CHIP_defconfig b/configs/CHIP_defconfig index a70ee31d40..8d40da090b 100644 --- a/configs/CHIP_defconfig +++ b/configs/CHIP_defconfig @@ -1,6 +1,7 @@ CONFIG_ARM=y CONFIG_ARCH_SUNXI=y CONFIG_SPL=y +CONFIG_CHIP_DIP_SCAN=y CONFIG_MACH_SUN5I=y CONFIG_DRAM_TIMINGS_DDR3_800E_1066G_1333J=y CONFIG_USB0_VBUS_PIN="PB10" -- 2.17.1