mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-17 10:18:38 +00:00
b0a284a7c9
i.MX8MN/P/ULP supports ROM API, they have almost same get_boot_device implementation, so move to a common file. And when support i.MX9, no need to include the other function copy. Since sys_proto.h is included in imx_romapi.c, there will be build warning for i.MX8M because wdog_regs not defined, so include imx-regs.h in i.MX8M sys_proro.h Signed-off-by: Peng Fan <peng.fan@nxp.com>
17 lines
379 B
C
17 lines
379 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright (C) 2017 NXP
|
|
*/
|
|
|
|
#ifndef __ARCH_IMX8M_SYS_PROTO_H
|
|
#define __ARCH_NMX8M_SYS_PROTO_H
|
|
|
|
#include <asm/mach-imx/sys_proto.h>
|
|
#include <asm/arch/imx-regs.h>
|
|
|
|
void set_wdog_reset(struct wdog_regs *wdog);
|
|
void enable_tzc380(void);
|
|
void restore_boot_params(void);
|
|
extern unsigned long rom_pointer[];
|
|
bool is_usb_boot(void);
|
|
#endif
|