diff mbox series

[1/2] ARM: stm32: Define I2C EEPROM bus and address on DHCOM

Message ID 20200427102643.330063-1-marex@denx.de
State Accepted
Commit 8d055b020aa8679d8033649d69655f299569720f
Headers show
Series [1/2] ARM: stm32: Define I2C EEPROM bus and address on DHCOM | expand

Commit Message

Marek Vasut April 27, 2020, 10:26 a.m. UTC
Define I2C EEPROM bus and address, so that the 'eeprom' command uses
the correct ones and does not generate the following error:
    eeprom_rw_block: Cannot find udev for a bus 0

Signed-off-by: Marek Vasut <marex at denx.de>
Cc: Patrick Delaunay <patrick.delaunay at st.com>
Cc: Patrice Chotard <patrice.chotard at st.com>
---
 configs/stm32mp15_dhcom_basic_defconfig | 2 ++
 1 file changed, 2 insertions(+)

Comments

Patrick Delaunay April 27, 2020, 1:39 p.m. UTC | #1
Dear Marek,

> From: Marek Vasut <marex at denx.de>
> Sent: lundi 27 avril 2020 12:27
> 
> Define I2C EEPROM bus and address, so that the 'eeprom' command uses the
> correct ones and does not generate the following error:
>     eeprom_rw_block: Cannot find udev for a bus 0
> 
> Signed-off-by: Marek Vasut <marex at denx.de>
> Cc: Patrick Delaunay <patrick.delaunay at st.com>
> Cc: Patrice Chotard <patrice.chotard at st.com>
> ---
>  configs/stm32mp15_dhcom_basic_defconfig | 2 ++
>  1 file changed, 2 insertions(+)
> 

Reviewed-by: Patrick Delaunay <patrick.delaunay at st.com>

Thanks

Patrick
Patrick Delaunay May 14, 2020, 9:37 a.m. UTC | #2
Hi,

> From: Marek Vasut <marex at denx.de>
> Sent: lundi 27 avril 2020 12:27
> 
> Define I2C EEPROM bus and address, so that the 'eeprom' command uses the
> correct ones and does not generate the following error:
>     eeprom_rw_block: Cannot find udev for a bus 0
> 
> Signed-off-by: Marek Vasut <marex at denx.de>
> Cc: Patrick Delaunay <patrick.delaunay at st.com>
> Cc: Patrice Chotard <patrice.chotard at st.com>
> ---
>  configs/stm32mp15_dhcom_basic_defconfig | 2 ++
>  1 file changed, 2 insertions(+)
> 

Applied to u-boot-stm/master, thanks!

Regards

Patrick
diff mbox series

Patch

diff --git a/configs/stm32mp15_dhcom_basic_defconfig b/configs/stm32mp15_dhcom_basic_defconfig
index f830feb306..28824cf813 100644
--- a/configs/stm32mp15_dhcom_basic_defconfig
+++ b/configs/stm32mp15_dhcom_basic_defconfig
@@ -76,6 +76,8 @@  CONFIG_LED_GPIO=y
 CONFIG_DM_MAILBOX=y
 CONFIG_STM32_IPCC=y
 CONFIG_I2C_EEPROM=y
+CONFIG_SYS_I2C_EEPROM_ADDR=0x50
+CONFIG_SYS_I2C_EEPROM_BUS=3
 CONFIG_DM_MMC=y
 CONFIG_SUPPORT_EMMC_BOOT=y
 CONFIG_STM32_SDMMC2=y