Peng Fan | 9c87e46 | 2021-08-07 16:00:59 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Copyright 2021 NXP |
| 4 | */ |
| 5 | |
| 6 | #ifndef __ASM_ARCH_IMX8ULP_RDC_H |
| 7 | #define __ASM_ARCH_IMX8ULP_RDC_H |
| 8 | |
| 9 | enum rdc_type { |
| 10 | RDC_TRDC, |
| 11 | RDC_XRDC, |
| 12 | }; |
| 13 | |
| 14 | int release_rdc(enum rdc_type type); |
| 15 | void xrdc_mrc_region_set_access(int mrc_index, u32 addr, u32 access); |
| 16 | int xrdc_config_mrc_dx_perm(u32 mrc_con, u32 region, u32 dom, u32 dxsel); |
| 17 | int xrdc_config_mrc_w0_w1(u32 mrc_con, u32 region, u32 w0, u32 size); |
| 18 | int xrdc_config_mrc_w3_w4(u32 mrc_con, u32 region, u32 w3, u32 w4); |
| 19 | int xrdc_config_pdac(u32 bridge, u32 index, u32 dom, u32 perm); |
| 20 | int xrdc_config_pdac_openacc(u32 bridge, u32 index); |
| 21 | int trdc_mbc_set_access(u32 mbc_x, u32 dom_x, u32 mem_x, u32 blk_x, bool sec_access); |
| 22 | int trdc_mrc_region_set_access(u32 mrc_x, u32 dom_x, u32 addr_start, u32 addr_end, bool sec_access); |
| 23 | |
| 24 | void xrdc_init_mda(void); |
| 25 | void xrdc_init_mrc(void); |
Ye Li | 7edb362 | 2023-01-31 16:42:24 +0800 | [diff] [blame] | 26 | void xrdc_init_pdac_msc(void); |
Peng Fan | 9c87e46 | 2021-08-07 16:00:59 +0800 | [diff] [blame] | 27 | |
| 28 | #endif |