blob: 5f030eaa0ad5060880ea9d3a699d5546c3dff7d7 [file] [log] [blame]
Peng Fan5c2218a2021-08-07 16:00:31 +08001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright 2021 NXP
4 */
5
6#ifndef __ARCH_IMX8ULP_SYS_PROTO_H
7#define __ARCH_NMX8ULP_SYS_PROTO_H
8
9#include <asm/mach-imx/sys_proto.h>
10
Peng Fan72530162021-08-07 16:00:33 +080011extern unsigned long rom_pointer[];
12
Ye Li7a71c612021-08-07 16:00:39 +080013ulong spl_romapi_raw_seekable_read(u32 offset, u32 size, void *buf);
14ulong spl_romapi_get_uboot_base(u32 image_offset, u32 rom_bt_dev);
Peng Fan72530162021-08-07 16:00:33 +080015enum bt_mode get_boot_mode(void);
Peng Fanfe1bf872021-08-07 16:00:56 +080016int xrdc_config_pdac(u32 bridge, u32 index, u32 dom, u32 perm);
17int xrdc_config_pdac_openacc(u32 bridge, u32 index);
Ye Li88044c72021-08-07 16:01:01 +080018enum boot_device get_boot_device(void);
Ye Li715cfa02021-10-29 09:46:23 +080019void set_lpav_qos(void);
Ye Li133f8b82021-10-29 09:46:25 +080020void load_lposc_fuse(void);
Ye Li2e9f15c2022-04-06 14:30:08 +080021bool m33_image_booted(void);
22int m33_image_handshake(ulong timeout_ms);
Peng Fan5c2218a2021-08-07 16:00:31 +080023#endif