From: Tom Rini Date: Fri, 19 Feb 2021 11:54:50 -0500 Subject: [PATCH 07/10] arm: mach-sunxi: add CHIP board target In-Reply-To: <20210218132938.2168-8-kory.maincent@bootlin.com> References: <20210218132938.2168-1-kory.maincent@bootlin.com> <20210218132938.2168-8-kory.maincent@bootlin.com> Message-ID: <20210219165450.GL10169@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Feb 18, 2021 at 02:29:35PM +0100, Kory Maincent wrote: > The CHIP board use one-wire EEPROM to discover and identify extension > boards (called "DIPs"). > > This commit add the configuration for the CHIP board target 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 > > arch/arm/mach-sunxi/Kconfig | 14 ++++++++++++++ > configs/CHIP_defconfig | 1 + > 2 files changed, 15 insertions(+) > > diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig > index 49ef217f08..37a4294d88 100644 > --- a/arch/arm/mach-sunxi/Kconfig > +++ b/arch/arm/mach-sunxi/Kconfig > @@ -1,5 +1,19 @@ > if ARCH_SUNXI > > +choice > + prompt "Sunxi board select" > + optional > + > +config TARGET_CHIP > + bool "CHIP board" > + select W1 > + select W1_GPIO > + select W1_EEPROM > + select W1_EEPROM_DS24XXX > + > +endchoice > + > + > config SPL_LDSCRIPT > default "arch/arm/cpu/armv7/sunxi/u-boot-spl.lds" if !ARM64 > > diff --git a/configs/CHIP_defconfig b/configs/CHIP_defconfig > index a70ee31d40..6810797b19 100644 > --- a/configs/CHIP_defconfig > +++ b/configs/CHIP_defconfig > @@ -1,6 +1,7 @@ > CONFIG_ARM=y > CONFIG_ARCH_SUNXI=y > CONFIG_SPL=y > +CONFIG_TARGET_CHIP=y > CONFIG_MACH_SUN5I=y > CONFIG_DRAM_TIMINGS_DDR3_800E_1066G_1333J=y > CONFIG_USB0_VBUS_PIN="PB10" I think you should really just be adding options to the defconfig directly, sunxi has been avoiding adding TARGET_xxx options. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: