Commit 1a3c095fe1c524ab20fe9a3a469fb521a22d53c2

Authored by Lokesh Vutla
1 parent 9fafec3f9d

net: cpsw: get chip clock information from DT

Commit 6ca5f482a38ce ("driver: net: cpsw: add support for RGMII id mode
support and RMII clock source selection") enables the external chip clock
for RMII mode using private data. This data needs to be populated from
DT data. The above commit misses populating this data.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>

Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff

... ... @@ -1385,6 +1385,10 @@
1385 1385 return -ENOENT;
1386 1386 }
1387 1387  
  1388 + if (fdt_get_property(fdt, subnode, "rmii-clock-ext",
  1389 + NULL))
  1390 + priv->data.rmii_clock_external = true;
  1391 +
1388 1392 phy_sel_compat = fdt_getprop(fdt, subnode, "compatible",
1389 1393 NULL);
1390 1394 if (!phy_sel_compat) {