From: Tom Rini Date: Fri, 19 Feb 2021 11:54:54 -0500 Subject: [PATCH 08/10] sun5i: add support for DIP detection to CHIP board In-Reply-To: <20210218132938.2168-9-kory.maincent@bootlin.com> References: <20210218132938.2168-1-kory.maincent@bootlin.com> <20210218132938.2168-9-kory.maincent@bootlin.com> Message-ID: <20210219165454.GM10169@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:36PM +0100, Kory Maincent wrote: > Add the extension_board_scan specific function to scan the information > of the EEPROM on one-wire and fill the extension struct. > > Signed-off-by: Kory Maincent > --- > arch/arm/mach-sunxi/Kconfig | 2 + > board/sunxi/Makefile | 1 + > board/sunxi/chip.c | 104 ++++++++++++++++++++++++++++++++++++ > 3 files changed, 107 insertions(+) > create mode 100644 board/sunxi/chip.c > > diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig > index 37a4294d88..3bb8a08b34 100644 > --- a/arch/arm/mach-sunxi/Kconfig > +++ b/arch/arm/mach-sunxi/Kconfig > @@ -6,10 +6,12 @@ choice > > config TARGET_CHIP > bool "CHIP board" > + select SUPPORT_EXTENSION_SCAN > select W1 > select W1_GPIO > select W1_EEPROM > select W1_EEPROM_DS24XXX > + imply CMD_EXTENSION And then based on my comment in the previous patch, similar to PINEPHONE_DT_SELECTION and other board-specific options, add a CHIP_DIP_SCAN option or similar. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: