net: fec_mxc: support i.MX8M with CLK_CCF
authorPeng Fan <peng.fan@nxp.com>
Fri, 25 Oct 2019 09:48:02 +0000 (09:48 +0000)
committerStefano Babic <sbabic@denx.de>
Tue, 5 Nov 2019 09:27:18 +0000 (10:27 +0100)
commit673f6597321d0e1b27a99fb7758a338a6b915318
treef82202fcd19e61875f1afd245e628ab1034151f9
parent81dc2ac557fd2ebe85026716f9af9d25279c1154
net: fec_mxc: support i.MX8M with CLK_CCF

Add more clks for fec_mxc according to Linux Kernel 5.4.0-rc1
drivers/net/ethernet/freescale/fec_main.c.

Since i.MX8MQ not support CLK_CCF, so add a check to restrict
the code only effect when CONFIG_IMX8M and CONFIG_CLK_CCF both defined.

Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/net/fec_mxc.c
drivers/net/fec_mxc.h