[PATCH v2 1/2] gpio: Let DM_74X164 be built without CONFIG_SPL_GPIO

Alifer Moraes alifer.wsdm at gmail.com
Thu Jan 30 14:13:50 CET 2020


Tested on mx7dsabresd board:

U-Boot 2020.04-rc1-00035-gb6e6e4f9d9 (Jan 30 2020 - 10:03:12 -0300)

CPU:   Freescale i.MX7D rev1.2 1000 MHz (running at 792 MHz)
CPU:   Commercial temperature grade (0C to 95C) at 39C
Reset cause: POR
Model: Freescale i.MX7 SabreSD Board
Board: i.MX7D SABRESD in secure mode
DRAM:  1 GiB
PMIC: PFUZE3000 DEV_ID=0x30 REV_ID=0x11
MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... OK
Video: 480x272x24
In:    serial
Out:   serial
Err:   serial
Net:   eth0: ethernet at 30be0000
Hit any key to stop autoboot:  0
=> dhcp Image
BOOTP broadcast 1
DHCP client bound to address 10.29.244.24 (327 ms)
Using ethernet at 30be0000 device
TFTP from server 10.29.240.177; our IP address is 10.29.244.24;
sending through gateway 10.29.244.254
Filename 'Image'.
Load address: 0x80800000
Loading: #################################################################
         #################################################################
         #################################################################
         ...
         #################################################################
         #################################################################
         ###########################################
         2.9 MiB/s
done
Bytes transferred = 27509248 (1a3c200 hex)
=>

Tested-by: Alifer Moraes <alifer.wsdm at gmail.com>

Em qua., 29 de jan. de 2020 às 13:58, Fabio Estevam
<festevam at gmail.com> escreveu:
>
> Since commit bcee8d6764f9 ("dm: gpio: Allow control of GPIO uclass in SPL")
> CONFIG_DM_74X164 is no longer built for mx7dsabresd_defconfig, as
> this target does not use CONFIG_SPL_GPIO.
>
> Remove such dependency and let the the 74X164 GPIO driver be built
> again.
>
> This restores Ethernet functionality on the imx7-sdb board as the
> Ethernet reset PHY comes from a GPIO driven by a 74LV595PW I/O
> expander.
>
> Fixes: bcee8d6764f9 ("dm: gpio: Allow control of GPIO uclass in SPL")
> Signed-off-by: Fabio Estevam <festevam at gmail.com>
> ---
> Changes since v1:
> - Move to the 'ifndef CONFIG_SPL_BUILD' block so that it does
> not cause issues on SPL targets, such as mx6ul_14x14_defconfig
>
>  drivers/gpio/Makefile | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/gpio/Makefile b/drivers/gpio/Makefile
> index 449046b64c..17af123a7d 100644
> --- a/drivers/gpio/Makefile
> +++ b/drivers/gpio/Makefile
> @@ -6,13 +6,11 @@
>  ifndef CONFIG_SPL_BUILD
>  obj-$(CONFIG_DWAPB_GPIO)       += dwapb_gpio.o
>  obj-$(CONFIG_AXP_GPIO)         += axp_gpio.o
> +obj-$(CONFIG_DM_74X164)                += 74x164_gpio.o
>  endif
>  obj-$(CONFIG_$(SPL_TPL_)DM_GPIO) += gpio-uclass.o
>
>  obj-$(CONFIG_$(SPL_)DM_PCA953X)        += pca953x_gpio.o
> -ifdef CONFIG_$(SPL_TPL_)GPIO
> -obj-$(CONFIG_DM_74X164)                += 74x164_gpio.o
> -endif
>
>  obj-$(CONFIG_AT91_GPIO)        += at91_gpio.o
>  obj-$(CONFIG_ATMEL_PIO4)       += atmel_pio4.o
> --
> 2.17.1
>


More information about the U-Boot mailing list