[PATCH 08/10] sun5i: add support for DIP detection to CHIP board

Tom Rini trini at konsulko.com
Fri Feb 19 17:54:54 CET 2021


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 <kory.maincent at bootlin.com>
> ---
>  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: <https://lists.denx.de/pipermail/u-boot/attachments/20210219/85258fa5/attachment.sig>


More information about the U-Boot mailing list