Can single fw support multiple hardware variants? (Ethernet RMII vs. SPI)
Posted: Thu Apr 20, 2023 7:15 pm
I have this scenario: We have existing products in the field that we continue to support with OTA FW updates. And we want to develop the next generation product which uses some different components. We would like to distribute a single FW binary that can support both old and new hardware.
Specifically, old HW uses RMII interface to LAN8720 for Ethernet (and burns 9 IO pins!).
New HW will use SPI interface to W5500 for Ethernet and probably some other new stuff on that same SPI interface.
It looks like I can enable support for both RMII and SPI Ethernet in menuconfig. Does that mean I can select which one to use at runtime?
Specifically, old HW uses RMII interface to LAN8720 for Ethernet (and burns 9 IO pins!).
New HW will use SPI interface to W5500 for Ethernet and probably some other new stuff on that same SPI interface.
It looks like I can enable support for both RMII and SPI Ethernet in menuconfig. Does that mean I can select which one to use at runtime?