1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Copyright 2022 NXP
4  */
5 
6 #ifndef __ASM_ARCH_IMX9_TRDC_H
7 #define __ASM_ARCH_IMX9_TRDC_H
8 
9 int trdc_mbc_set_control(ulong trdc_reg, u32 mbc_x, u32 glbac_id, u32 glbac_val);
10 int trdc_mbc_blk_config(ulong trdc_reg, u32 mbc_x, u32 dom_x, u32 mem_x, u32 blk_x,
11 			bool sec_access, u32 glbac_id);
12 int trdc_mrc_set_control(ulong trdc_reg, u32 mrc_x, u32 glbac_id, u32 glbac_val);
13 int trdc_mrc_region_config(ulong trdc_reg, u32 mrc_x, u32 dom_x, u32 addr_start,
14 			   u32 addr_end, bool sec_access, u32 glbac_id);
15 
16 void trdc_early_init(void);
17 void trdc_init(void);
18 
19 #endif
20