summaryrefslogtreecommitdiff
path: root/board/kontron/sl28/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/kontron/sl28/common.c')
-rw-r--r--board/kontron/sl28/common.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/board/kontron/sl28/common.c b/board/kontron/sl28/common.c
new file mode 100644
index 0000000000..33c6843c3f
--- /dev/null
+++ b/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;
+}