bios: find SPI address dynamically

In case of multiple SPI chips on an SPI bus, the address of the SPI
controller does not map directly to the SPI device index.

Query sysfs to find the mapping and probe the driver correctly.

Change-Id: I951ff2540aa2ea27150adcc7c5aea47bd221bca1
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
1 file changed
tree: b7f0ce4a8386d3d3153cf15bc749dcda9b9c131e
  1. bios/
  2. bmc/
  3. common/
  4. eeprom-device/
  5. i2c-vr/
  6. subprojects/
  7. test/
  8. .clang-format
  9. .clang-tidy
  10. .gitignore
  11. .shellcheck
  12. LICENSE
  13. meson.build
  14. meson.options
  15. OWNERS
  16. README.md
README.md

phosphor-bmc-code-mgmt

Phosphor BMC Code Management provides a set of system software management applications. More information can be found at Software Architecture

To Build

To build this package, do the following steps:

  1. meson build
  2. ninja -C build

To clean the repository run rm -r build.