Skip to content

Commit ae7f6b3

Browse files
Swathi K Skuba-moo
authored andcommitted
net: stmmac: dwc-qos: Add FSD EQoS support
The FSD SoC contains two instance of the Synopsys DWC ethernet QOS IP core. The binding that it uses is slightly different from existing ones because of the integration (clocks, resets). Signed-off-by: Swathi K S <[email protected]> Reviewed-by: Russell King (Oracle) <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 1f6c389 commit ae7f6b3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

drivers/net/ethernet/stmicro/stmmac/dwmac-dwc-qos-eth.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,10 @@ static const struct dwc_eth_dwmac_data tegra_eqos_data = {
319319
.stmmac_clk_name = "slave_bus",
320320
};
321321

322+
static const struct dwc_eth_dwmac_data fsd_eqos_data = {
323+
.stmmac_clk_name = "slave_bus",
324+
};
325+
322326
static int dwc_eth_dwmac_probe(struct platform_device *pdev)
323327
{
324328
const struct dwc_eth_dwmac_data *data;
@@ -359,7 +363,8 @@ static int dwc_eth_dwmac_probe(struct platform_device *pdev)
359363
plat_dat->stmmac_clk = dwc_eth_find_clk(plat_dat,
360364
data->stmmac_clk_name);
361365

362-
ret = data->probe(pdev, plat_dat, &stmmac_res);
366+
if (data->probe)
367+
ret = data->probe(pdev, plat_dat, &stmmac_res);
363368
if (ret < 0) {
364369
dev_err_probe(&pdev->dev, ret, "failed to probe subdriver\n");
365370
clk_bulk_disable_unprepare(plat_dat->num_clks, plat_dat->clks);
@@ -400,6 +405,7 @@ static void dwc_eth_dwmac_remove(struct platform_device *pdev)
400405
static const struct of_device_id dwc_eth_dwmac_match[] = {
401406
{ .compatible = "snps,dwc-qos-ethernet-4.10", .data = &dwc_qos_data },
402407
{ .compatible = "nvidia,tegra186-eqos", .data = &tegra_eqos_data },
408+
{ .compatible = "tesla,fsd-ethqos", .data = &fsd_eqos_data },
403409
{ }
404410
};
405411
MODULE_DEVICE_TABLE(of, dwc_eth_dwmac_match);

0 commit comments

Comments
 (0)