]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: mach-imx: imx6sx: Remove Ethernet refclock setting
authorFabio Estevam <festevam@denx.de>
Sat, 29 Jun 2024 02:47:35 +0000 (23:47 -0300)
committerShawn Guo <shawnguo@kernel.org>
Mon, 5 Aug 2024 07:26:30 +0000 (15:26 +0800)
The Ethernet refclock configuration is board specific and should
not be harcoded in machine code.

Remove it to align with the imx6ul commit e87f3be1c7f8 ("ARM: mach-imx:
imx6ul: remove not optional ethernet refclock overwrite").

Clearing bits 13 and 17 of GPR1 is the POR values, so this change
does not affect existing boards in mainline.

Tested on imx6sx-udoo-neo and imx6sx-sdb boards.

Signed-off-by: Fabio Estevam <festevam@denx.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/mach-imx/mach-imx6sx.c

index 9ababf4ac210b9edc7a0d7a19fa4e3b446319fa4..3feb31ab556e126c1083bbfd1264405730e48a7d 100644 (file)
@@ -7,37 +7,15 @@
 #include <linux/of_platform.h>
 #include <linux/regmap.h>
 #include <linux/mfd/syscon.h>
-#include <linux/mfd/syscon/imx6q-iomuxc-gpr.h>
 #include <asm/mach/arch.h>
 
 #include "common.h"
 #include "cpuidle.h"
 
-static void __init imx6sx_enet_clk_sel(void)
-{
-       struct regmap *gpr;
-
-       gpr = syscon_regmap_lookup_by_compatible("fsl,imx6sx-iomuxc-gpr");
-       if (!IS_ERR(gpr)) {
-               regmap_update_bits(gpr, IOMUXC_GPR1,
-                                  IMX6SX_GPR1_FEC_CLOCK_MUX_SEL_MASK, 0);
-               regmap_update_bits(gpr, IOMUXC_GPR1,
-                                  IMX6SX_GPR1_FEC_CLOCK_PAD_DIR_MASK, 0);
-       } else {
-               pr_err("failed to find fsl,imx6sx-iomux-gpr regmap\n");
-       }
-}
-
-static inline void imx6sx_enet_init(void)
-{
-       imx6sx_enet_clk_sel();
-}
-
 static void __init imx6sx_init_machine(void)
 {
        of_platform_default_populate(NULL, NULL, NULL);
 
-       imx6sx_enet_init();
        imx_anatop_init();
        imx6sx_pm_init();
 }