]> git.baikalelectronics.ru Git - uboot.git/commit
ARM: stm32: Add additional ID register check for KSZ8851 presence
authorMarek Vasut <marex@denx.de>
Mon, 3 May 2021 11:31:39 +0000 (13:31 +0200)
committerPatrick Delaunay <patrick.delaunay@foss.st.com>
Fri, 28 May 2021 12:54:16 +0000 (14:54 +0200)
commit3d799203648cdc066149dd4b5c6265f55bd7293d
treeba5e0946f5f7e978ea7abc1a4ca281d1ccf4a8e3
parent41ae5f404b72853644c014860ae1d18f90ff29e7
ARM: stm32: Add additional ID register check for KSZ8851 presence

Currently the code sets eth1addr only if /ethernet1 alias exists in DT,
the node pointed to by the alias has "micrel,ks8851-mll" compatible
string, and the KSZ8851 CCR register read indicates programmed EEPROM
is not connected.

This is not sufficient to detect cases where the DT still contains the
KSZ8851 nodes, but the chip itself is not present. Extend the detection
to handle these cases.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Patrice Chotard <patrice.chotard@foss.st.com>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
board/dhelectronics/dh_stm32mp1/board.c