Commit 83936ea8 authored by Jianguo Zhang's avatar Jianguo Zhang Committed by David S. Miller

net: stmmac: add a parse for new property 'snps,clk-csr'

Parse new property 'snps,clk-csr' firstly because the new property
is documented in binding file, if failed, fall back to old property
'clk_csr' for legacy case
Signed-off-by: default avatarJianguo Zhang <jianguo.zhang@mediatek.com>
Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7871785c
...@@ -444,6 +444,7 @@ stmmac_probe_config_dt(struct platform_device *pdev, u8 *mac) ...@@ -444,6 +444,7 @@ stmmac_probe_config_dt(struct platform_device *pdev, u8 *mac)
* or get clk_csr from device tree. * or get clk_csr from device tree.
*/ */
plat->clk_csr = -1; plat->clk_csr = -1;
if (of_property_read_u32(np, "snps,clk-csr", &plat->clk_csr))
of_property_read_u32(np, "clk_csr", &plat->clk_csr); of_property_read_u32(np, "clk_csr", &plat->clk_csr);
/* "snps,phy-addr" is not a standard property. Mark it as deprecated /* "snps,phy-addr" is not a standard property. Mark it as deprecated
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment