aboutsummaryrefslogtreecommitdiffstats
path: root/roms/u-boot/board/kontron/sl28/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'roms/u-boot/board/kontron/sl28/common.c')
-rw-r--r--roms/u-boot/board/kontron/sl28/common.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/roms/u-boot/board/kontron/sl28/common.c b/roms/u-boot/board/kontron/sl28/common.c
new file mode 100644
index 000000000..33c6843c3
--- /dev/null
+++ b/roms/u-boot/board/kontron/sl28/common.c
@@ -0,0 +1,11 @@
+// SPDX-License-Identifier: GPL-2.0+
+
+#include <common.h>
+#include <asm/global_data.h>
+
+DECLARE_GLOBAL_DATA_PTR;
+
+u32 get_lpuart_clk(void)
+{
+ return gd->bus_clk / CONFIG_SYS_FSL_LPUART_CLK_DIV;
+}