summaryrefslogtreecommitdiff
path: root/drivers/net/dwc_eth_qos.h
diff options
context:
space:
mode:
authorPhilip Oberfichtner <pro@denx.de>2024-08-02 11:25:37 +0200
committerTom Rini <trini@konsulko.com>2024-09-03 09:12:00 -0600
commitbeabef651139574ba372e6d0ba004fad1ce64759 (patch)
tree52135c7ed449d958430f74e6e2cb9afa25c74bef /drivers/net/dwc_eth_qos.h
parent14b237a8bd169c81faef1c62c9bcb21c655cf5a4 (diff)
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>
Diffstat (limited to 'drivers/net/dwc_eth_qos.h')
-rw-r--r--drivers/net/dwc_eth_qos.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/dwc_eth_qos.h b/drivers/net/dwc_eth_qos.h
index c7d3e23ab7b..b37d3d2f5dd 100644
--- a/drivers/net/dwc_eth_qos.h
+++ b/drivers/net/dwc_eth_qos.h
@@ -289,7 +289,9 @@ void eqos_inval_desc_generic(void *desc);
void eqos_flush_desc_generic(void *desc);
void eqos_inval_buffer_generic(void *buf, size_t size);
void eqos_flush_buffer_generic(void *buf, size_t size);
+int eqos_get_base_addr_dt(struct udevice *dev);
int eqos_null_ops(struct udevice *dev);
+void *eqos_get_driver_data(struct udevice *dev);
extern struct eqos_config eqos_imx_config;
extern struct eqos_config eqos_rockchip_config;