* [PATCH v2 1/2] gpio: Let DM_74X164 be built without CONFIG_SPL_GPIO
@ 2020-01-29 16:58 Fabio Estevam
2020-01-29 16:58 ` [PATCH v2 2/2] mx6ul_14x14_evk: Move CONFIG_DM_74X164 to defconfig Fabio Estevam
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: Fabio Estevam @ 2020-01-29 16:58 UTC (permalink / raw)
To: u-boot
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@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
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v2 2/2] mx6ul_14x14_evk: Move CONFIG_DM_74X164 to defconfig
2020-01-29 16:58 [PATCH v2 1/2] gpio: Let DM_74X164 be built without CONFIG_SPL_GPIO Fabio Estevam
@ 2020-01-29 16:58 ` Fabio Estevam
2020-01-29 17:48 ` Tom Rini
2020-02-10 9:07 ` sbabic at denx.de
2020-01-29 17:48 ` [PATCH v2 1/2] gpio: Let DM_74X164 be built without CONFIG_SPL_GPIO Tom Rini
` (2 subsequent siblings)
3 siblings, 2 replies; 7+ messages in thread
From: Fabio Estevam @ 2020-01-29 16:58 UTC (permalink / raw)
To: u-boot
The CONFIG_DM_74X164 symbols should be moved to the defconfig file,
as indicated in the comments.
Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
configs/mx6ul_14x14_evk_defconfig | 1 +
include/configs/mx6ul_14x14_evk.h | 5 -----
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/configs/mx6ul_14x14_evk_defconfig b/configs/mx6ul_14x14_evk_defconfig
index 4fd311d2fb..029cc01285 100644
--- a/configs/mx6ul_14x14_evk_defconfig
+++ b/configs/mx6ul_14x14_evk_defconfig
@@ -44,6 +44,7 @@ CONFIG_DEFAULT_DEVICE_TREE="imx6ul-14x14-evk"
CONFIG_ENV_IS_IN_MMC=y
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
+CONFIG_DM_74X164=y
CONFIG_DM_I2C=y
CONFIG_DM_MMC=y
CONFIG_FSL_USDHC=y
diff --git a/include/configs/mx6ul_14x14_evk.h b/include/configs/mx6ul_14x14_evk.h
index 5cc15b6d2f..f347eeb39f 100644
--- a/include/configs/mx6ul_14x14_evk.h
+++ b/include/configs/mx6ul_14x14_evk.h
@@ -44,11 +44,6 @@
#define CONFIG_SYS_I2C_SPEED 100000
#endif
-/* Note: This is incorrect and should move to Kconfig / defconfig */
-#ifdef CONFIG_DM_GPIO
-#define CONFIG_DM_74X164
-#endif
-
#define CONFIG_SYS_MMC_IMG_LOAD_PART 1
#define CONFIG_EXTRA_ENV_SETTINGS \
--
2.17.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v2 1/2] gpio: Let DM_74X164 be built without CONFIG_SPL_GPIO
2020-01-29 16:58 [PATCH v2 1/2] gpio: Let DM_74X164 be built without CONFIG_SPL_GPIO Fabio Estevam
2020-01-29 16:58 ` [PATCH v2 2/2] mx6ul_14x14_evk: Move CONFIG_DM_74X164 to defconfig Fabio Estevam
@ 2020-01-29 17:48 ` Tom Rini
2020-01-30 13:13 ` Alifer Moraes
2020-02-10 9:06 ` sbabic at denx.de
3 siblings, 0 replies; 7+ messages in thread
From: Tom Rini @ 2020-01-29 17:48 UTC (permalink / raw)
To: u-boot
On Wed, Jan 29, 2020 at 01:58:02PM -0300, Fabio Estevam wrote:
> 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@gmail.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200129/aa7e76f1/attachment.sig>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v2 2/2] mx6ul_14x14_evk: Move CONFIG_DM_74X164 to defconfig
2020-01-29 16:58 ` [PATCH v2 2/2] mx6ul_14x14_evk: Move CONFIG_DM_74X164 to defconfig Fabio Estevam
@ 2020-01-29 17:48 ` Tom Rini
2020-02-10 9:07 ` sbabic at denx.de
1 sibling, 0 replies; 7+ messages in thread
From: Tom Rini @ 2020-01-29 17:48 UTC (permalink / raw)
To: u-boot
On Wed, Jan 29, 2020 at 01:58:03PM -0300, Fabio Estevam wrote:
> The CONFIG_DM_74X164 symbols should be moved to the defconfig file,
> as indicated in the comments.
>
> Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200129/7d1aa8ac/attachment.sig>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v2 1/2] gpio: Let DM_74X164 be built without CONFIG_SPL_GPIO
2020-01-29 16:58 [PATCH v2 1/2] gpio: Let DM_74X164 be built without CONFIG_SPL_GPIO Fabio Estevam
2020-01-29 16:58 ` [PATCH v2 2/2] mx6ul_14x14_evk: Move CONFIG_DM_74X164 to defconfig Fabio Estevam
2020-01-29 17:48 ` [PATCH v2 1/2] gpio: Let DM_74X164 be built without CONFIG_SPL_GPIO Tom Rini
@ 2020-01-30 13:13 ` Alifer Moraes
2020-02-10 9:06 ` sbabic at denx.de
3 siblings, 0 replies; 7+ messages in thread
From: Alifer Moraes @ 2020-01-30 13:13 UTC (permalink / raw)
To: u-boot
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@gmail.com>
Em qua., 29 de jan. de 2020 Ã s 13:58, Fabio Estevam
<festevam@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@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
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v2 1/2] gpio: Let DM_74X164 be built without CONFIG_SPL_GPIO
2020-01-29 16:58 [PATCH v2 1/2] gpio: Let DM_74X164 be built without CONFIG_SPL_GPIO Fabio Estevam
` (2 preceding siblings ...)
2020-01-30 13:13 ` Alifer Moraes
@ 2020-02-10 9:06 ` sbabic at denx.de
3 siblings, 0 replies; 7+ messages in thread
From: sbabic at denx.de @ 2020-02-10 9:06 UTC (permalink / raw)
To: u-boot
> 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@gmail.com>
> Reviewed-by: Tom Rini <trini@konsulko.com>
> Tested-by: Alifer Moraes <alifer.wsdm@gmail.com>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH v2 2/2] mx6ul_14x14_evk: Move CONFIG_DM_74X164 to defconfig
2020-01-29 16:58 ` [PATCH v2 2/2] mx6ul_14x14_evk: Move CONFIG_DM_74X164 to defconfig Fabio Estevam
2020-01-29 17:48 ` Tom Rini
@ 2020-02-10 9:07 ` sbabic at denx.de
1 sibling, 0 replies; 7+ messages in thread
From: sbabic at denx.de @ 2020-02-10 9:07 UTC (permalink / raw)
To: u-boot
> The CONFIG_DM_74X164 symbols should be moved to the defconfig file,
> as indicated in the comments.
> Signed-off-by: Fabio Estevam <festevam@gmail.com>
> Reviewed-by: Tom Rini <trini@konsulko.com>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2020-02-10 9:07 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-29 16:58 [PATCH v2 1/2] gpio: Let DM_74X164 be built without CONFIG_SPL_GPIO Fabio Estevam
2020-01-29 16:58 ` [PATCH v2 2/2] mx6ul_14x14_evk: Move CONFIG_DM_74X164 to defconfig Fabio Estevam
2020-01-29 17:48 ` Tom Rini
2020-02-10 9:07 ` sbabic at denx.de
2020-01-29 17:48 ` [PATCH v2 1/2] gpio: Let DM_74X164 be built without CONFIG_SPL_GPIO Tom Rini
2020-01-30 13:13 ` Alifer Moraes
2020-02-10 9:06 ` sbabic at denx.de
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox