net: dwc_eth_qos: Add glue driver for Intel MAC

Add dwc_eth_qos glue driver for the Intel Elkhart-Lake SOC.

Signed-off-by: Philip Oberfichtner <pro@denx.de>
This commit is contained in:
Philip Oberfichtner
2024-08-02 11:25:39 +02:00
committed by Tom Rini
parent 2689b14ef3
commit 49d8fe07f9
7 changed files with 536 additions and 0 deletions

View File

@@ -1434,6 +1434,18 @@ int eqos_get_base_addr_dt(struct udevice *dev)
return eqos_get_base_addr_common(dev, addr);
}
int eqos_get_base_addr_pci(struct udevice *dev)
{
fdt_addr_t addr;
void *paddr;
paddr = dm_pci_map_bar(dev, PCI_BASE_ADDRESS_0, 0, 0, PCI_REGION_TYPE,
PCI_REGION_MEM);
addr = paddr ? (fdt_addr_t)paddr : FDT_ADDR_T_NONE;
return eqos_get_base_addr_common(dev, addr);
}
static int eqos_probe(struct udevice *dev)
{
struct eqos_priv *eqos = dev_get_priv(dev);