xilinx: common: Add support for SOC detection
authorMichal Simek <michal.simek@amd.com>
Tue, 6 Sep 2022 10:40:41 +0000 (12:40 +0200)
committerMichal Simek <michal.simek@amd.com>
Tue, 13 Sep 2022 09:32:48 +0000 (11:32 +0200)
commit39d3c3cfaa4f5099a2d687de4530c9ca4bee256d
treea7df3f3ad6af27d9ed6fb8eef8c1e93c4f91d88d
parent4e168260281518abbb417dc08ec91d96cca715a1
xilinx: common: Add support for SOC detection

Code supports board detection based on information available in EEPROM in
legacy or FRU format. But this is not enough for emulation and simulation
systems which are lacking these identification EEPROMs. But SOC itself has
normally registers for SOC identification. Based on them it is possible to
compose detected name. That's why prepare infrastructure in common location
for SOC platform detection which is called before board platform detection.
SOC platform detection shouldn't detect real silicon and should fallback to
current existing mechanism to identify boards based on EEPROMs.

Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/329a8da338927b082e26a958bf69bb18af072420.1662460837.git.michal.simek@amd.com
board/xilinx/common/board.c