net: phy: air_en8811h: load the PHY firmware from filesystem on block device by default
Subsystems (2)
PATCH 1/1 net: phy: air_en8811h: load the PHY firmware from filesystem on block device by default
Locating the AIROHA FW within the filesystem at the designated partition and path will trigger its automatic loading and writing to the PHY via MDIO. If need board specific loading override,
please override the en8811h_read_fw function on board or architecture level.
Signed-off-by Lucien.Jheng <[email protected]>
--- drivers/net/phy/Kconfig | 39 ++++++----- drivers/net/phy/air_en8811h.c | 119 ++++++++++++++++++++-------------- 2 files changed, 95 insertions(+), 63 deletions(-)
drivers/net/phy/Kconfig +24 -15
@@ -94,24 +94,33 @@ choice depends on PHY_AIROHA_EN8811H config PHY_AIROHA_FW_IN_MMC - bool "Airoha firmware in MMC boot1 partition" - -endchoice + bool "Airoha firmware in MMC partition" + help + Airoha PHYs use firmware which can be loaded automatically + from storage directly attached to the PHY, and then loaded + via MDIO commands by the boot loader. The firmware is loaded + from a file specified by the PHY_AIROHA_FW_PART, + PHY_AIROHA_FW_DM_FILEPATH and PHY_AIROHA_FW_DSP_FILEPATH options. + +config PHY_AIROHA_FW_PART + string "Airoha firmware partition" + depends on PHY_AIROHA_FW_IN_MMC + help + Partition containing the firmware file. -config AIROHA_FW_ADDR - hex "Airoha Firmware Address" - depends on PHY_AIROHA_EN8811H - default 0x0 +config PHY_AIROHA_FW_DM_FILEPATH + string "Airoha firmware DM file path in the filesystem" + depends on PHY_AIROHA_FW_IN_MMC + help + Specify Airoha firmware DM file path in the filesystem. -config AIROHA_MD32_DM_SIZE - hex "Airoha Firmware MD32 DM Size" - depends on PHY_AIROHA_EN8811H - default 0x4000 +config PHY_AIROHA_FW_DSP_FILEPATH + string "Airoha firmware DSP file path in the filesystem" + depends on PHY_AIROHA_FW_IN_MMC + help + Specify Airoha firmware DSP file path in the filesystem. -config AIROHA_MD32_DSP_SIZE - hex "Airoha Firmware MD32 DSP Size" - depends on PHY_AIROHA_EN8811H - default 0x20000 +endchoice menuconfig PHY_AQUANTIA bool "Aquantia Ethernet PHYs support"
drivers/net/phy/air_en8811h.c +71 -48
179 lines not on this page · raw message
--
2.34.1