]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: dwc_eth_qos: Adapt probe() for PCI devices
authorPhilip Oberfichtner <pro@denx.de>
Fri, 2 Aug 2024 09:25:37 +0000 (11:25 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 3 Sep 2024 15:12:00 +0000 (09:12 -0600)
commitbeabef651139574ba372e6d0ba004fad1ce64759
tree52135c7ed449d958430f74e6e2cb9afa25c74bef
parent14b237a8bd169c81faef1c62c9bcb21c655cf5a4
net: dwc_eth_qos: Adapt probe() for PCI devices

PCI devices do not necessarily use a device tree. In that case, the
driver currently fails to find eqos->config and eqos->regs.

This commit factors out the respective functionality. Device tree usage
remains default, but board specific implementations will be possible as
well.

Signed-off-by: Philip Oberfichtner <pro@denx.de>
drivers/net/dwc_eth_qos.c
drivers/net/dwc_eth_qos.h
drivers/net/dwc_eth_qos_imx.c
drivers/net/dwc_eth_qos_qcom.c
drivers/net/dwc_eth_qos_rockchip.c
drivers/net/dwc_eth_qos_starfive.c
drivers/net/dwc_eth_qos_stm32.c