summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2024-02-21 16:03:21 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2024-03-13 12:00:28 +0100
commit3639b69111fffd8d612e8314c228b7cb82b52f61 (patch)
treedc6993e29e207a32546836ce394542f7bf25f99c
parenta3f8993b72f00f2c1d5f7538a7a8d66a24fb16f2 (diff)
downloadbarebox-3639b69111fffd8d612e8314c228b7cb82b52f61.tar.gz
barebox-3639b69111fffd8d612e8314c228b7cb82b52f61.tar.xz
ARM: tqma6ul: enable enet_ref_125m clk
The TQMa6ul needs the enet_ref_125m clk as phy clock. This is currently not enabled, so ethernet on fec2 is not working. As there's no good place to enable it currently do this in the board code. Link: https://lore.barebox.org/20240221150323.2715164-7-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--arch/arm/boards/tqma6ulx/board.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/boards/tqma6ulx/board.c b/arch/arm/boards/tqma6ulx/board.c
index b3cecaa97d..be0abe443e 100644
--- a/arch/arm/boards/tqma6ulx/board.c
+++ b/arch/arm/boards/tqma6ulx/board.c
@@ -11,10 +11,18 @@
#include <mach/imx/bbu.h>
#include <of.h>
#include <string.h>
+#include <linux/clk.h>
static int mba6ulx_probe(struct device *dev)
{
int flags;
+ struct clk *clk;
+
+ clk = clk_lookup("enet_ref_125m");
+ if (IS_ERR(clk))
+ pr_err("Cannot find enet_ref_125m: %pe\n", clk);
+ else
+ clk_enable(clk);
/* the bootloader is stored in one of the two boot partitions */
flags = bootsource_get_instance() == 0 ? BBU_HANDLER_FLAG_DEFAULT : 0;