ARM: imx6q: support ptp and rmii clock from pad
authorShawn Guo <shawn.guo@linaro.org>
Thu, 6 Feb 2014 05:22:02 +0000 (13:22 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Wed, 5 Mar 2014 02:35:20 +0000 (10:35 +0800)
commit810c0ca879098a993e2ce0a190d24d11c17df748
treeaff465255bc4b770c260f92abcce2dd0f929998a
parentb30c6d018094ac85533ddf04bc069755f081d48e
ARM: imx6q: support ptp and rmii clock from pad

On imx6qdl, the ENET RMII and PTP clock can come from either internal
ANATOP/CCM or external clock source through pad GPIO_16.  But in case
of the external clock source, bit IOMUXC_GPR1[21] needs to be cleared.

The patch adds the support for systems that use an external clock source
and distinguishes above two cases by checking if the PTP clock specified
in device tree is the one coming from the internal ANATOP/CCM.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/mach-imx/clk-imx6q.c
arch/arm/mach-imx/mach-imx6q.c