MLK-16118-6 net: fec_mxc: Add the init_clk_fec function for non-DM driver
authorYe Li <ye.li@nxp.com>
Tue, 1 Aug 2017 10:06:25 +0000 (05:06 -0500)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 09:00:03 +0000 (02:00 -0700)
commit9c0be2929558498429b31868d67e1d6695546ac9
tree4a88ed4fcb315a38b147cde16755491c90371b75
parent880f4ae3f29ce60632f37577ee933e35f0720257
MLK-16118-6 net: fec_mxc: Add the init_clk_fec function for non-DM driver

When the power domain driver is enabled, we need to enable clocks after power
domain on. So the clock settings can't set in board_init, needs to set them
when the device is probed. Add this weak function in driver, that SoC codes
can implement the clock settings.

Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit c0e4ac66196b20f363f711fb18e40b70e3be9240)
(cherry picked from commit 187ea376980be12e69c45bd6e62c7ca1559046f6)
drivers/net/fec_mxc.c