summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/arch-imx8/sys_proto.h
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2019-06-12 14:35:25 +0300
committerStefano Babic <sbabic@denx.de>2019-07-19 21:14:50 +0300
commit64b5f469756f915cd223a0d8e807cb542a52666c (patch)
tree3d4733e112ddd1711ba612bb9fce099a000369eb /arch/arm/include/asm/arch-imx8/sys_proto.h
parentfcc79eee14205e4f786f5020ea18d9cc123da971 (diff)
downloadu-boot-64b5f469756f915cd223a0d8e807cb542a52666c.tar.xz
arm: imx8: factor out uart init code
New imx8 boards started adding duplicated UART init code. Factor out this to common function sc_pm_setup_uart(). Signed-off-by: Anatolij Gustschin <agust@denx.de> Cc: Peng Fan <peng.fan@nxp.com> Cc: Marcel Ziswiler <marcel.ziswiler@toradex.com> Reviewed-by: Peng Fan <peng.fan@nxp.com> Reviewed-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'arch/arm/include/asm/arch-imx8/sys_proto.h')
-rw-r--r--arch/arm/include/asm/arch-imx8/sys_proto.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-imx8/sys_proto.h b/arch/arm/include/asm/arch-imx8/sys_proto.h
index 73ffaba7d5..3f5bbe9dcc 100644
--- a/arch/arm/include/asm/arch-imx8/sys_proto.h
+++ b/arch/arm/include/asm/arch-imx8/sys_proto.h
@@ -3,6 +3,7 @@
* Copyright 2018 NXP
*/
+#include <asm/arch/sci/sci.h>
#include <asm/mach-imx/sys_proto.h>
#include <linux/types.h>
@@ -17,3 +18,4 @@ struct pass_over_info_t {
enum boot_device get_boot_device(void);
int print_bootinfo(void);
+int sc_pm_setup_uart(sc_rsrc_t uart_rsrc, sc_pm_clock_rate_t clk_rate);