diff mbox series

[v1,1/5] ARM: mach-imx6q: do not select enet PTP clock source on QuadPlus

Message ID 20200713002512.28742-2-TheSven73@gmail.com
State New
Headers show
Series imx6qp QuadPlus: support improved enet clocking | expand

Commit Message

Sven Van Asbroeck July 13, 2020, 12:25 a.m. UTC
On QuadPlus, the enet PTP clock source is selected via the clocktree.
Therefore it should not be set in the machine layer (mach-imx6q).

Signed-off-by: Sven Van Asbroeck <TheSven73@gmail.com>

Tree: v5.8-rc4

To: Shawn Guo <shawnguo@kernel.org>
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Pengutronix Kernel Team <kernel@pengutronix.de>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: NXP Linux Team <linux-imx@nxp.com>
Cc: linux-kernel@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-clk@vger.kernel.org

 arch/arm/mach-imx/mach-imx6q.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series


diff --git a/arch/arm/mach-imx/mach-imx6q.c b/arch/arm/mach-imx/mach-imx6q.c
index 85c084a716ab..fcf211492f6f 100644
--- a/arch/arm/mach-imx/mach-imx6q.c
+++ b/arch/arm/mach-imx/mach-imx6q.c
@@ -169,6 +169,10 @@  static void __init imx6q_1588_init(void)
 	struct regmap *gpr;
 	u32 clksel;
+	/* QuadPlus selects PTP clock source via clocktree */
+	if (of_machine_is_compatible("fsl,imx6qp"))
+		return;
 	np = of_find_compatible_node(NULL, NULL, "fsl,imx6q-fec");
 	if (!np) {
 		pr_warn("%s: failed to find fec node\n", __func__);