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-02-23 08:29:23 +0100
commit30aea51621e7ded6abdf940713978f939a53d035 (patch)
tree78b1b490da597d3c997d9ed11c08adfda2bbbbba
parentb78ccb436a3aca95480fce1bd213acfd90860d58 (diff)
downloadbarebox-30aea51621e7.tar.gz
barebox-30aea51621e7.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;