MLK-10098 ARM: imx: fix 1588 clock init
authorFugang Duan <b38611@freescale.com>
Wed, 14 Jan 2015 08:18:58 +0000 (16:18 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:46:52 +0000 (14:46 -0500)
commitf279be4fcc9e1dae4e133bdd59e662fe7f40ad84
tree0f0e642a992655bd0561a2034c861fb66c676a4e
parent01e40967c17296ac5ba6e0be64f80cc610211efa
MLK-10098 ARM: imx: fix 1588 clock init

The enet clock define is changed as there has no "enet_ref" clock name.
If the tx_clk is sourced from SOC anatop PLL, user define the clock id
in devicetree. So we only to judge the ptp clock valid and then set the
related GPR bit.

Signed-off-by: Fugang Duan <B38611@freescale.com>
(cherry picked from commit: 01ed2a839d9b76ccb4113dc2a04af4a33b33de22)
arch/arm/mach-imx/mach-imx6q.c