Lines Matching +full:secure +full:- +full:only
4 * SPDX-License-Identifier: Apache-2.0
63 if (SMU->IF & SMU_IF_BMPUSEC) { in smu_fault()
65 PR_EXC("SMU.BMPUFS=%d", SMU->BMPUFS); in smu_fault()
67 if (SMU->IF & SMU_IF_PPUSEC) { in smu_fault()
69 PR_EXC("SMU.PPUFS=%d", SMU->PPUFS); in smu_fault()
79 * If this is a secure app with no non-secure callable functions, it is a secure-only app. in soc_prep_hook()
80 * Configure all peripherals except the SMU and SEMAILBOX to non-secure aliases, and make in soc_prep_hook()
81 * all bus transactions from the CPU have non-secure attribution. in soc_prep_hook()
82 * This makes the secure-only app behave more like a non-secure app, allowing the use of in soc_prep_hook()
83 * libraries that only expect to use non-secure peripherals, such as the radio subsystem. in soc_prep_hook()
87 CMU_S->CLKEN1_SET = CMU_CLKEN1_SMU; in soc_prep_hook()
89 SMU->PPUSATD0_CLR = _SMU_PPUSATD0_MASK; in soc_prep_hook()
91 SMU->PPUSATD1_CLR = (_SMU_PPUSATD1_MASK & (~SMU_PPUSATD1_SMU & ~SMU_PPUSATD1_SEMAILBOX)); in soc_prep_hook()
93 SMU->PPUSATD1_CLR = (_SMU_PPUSATD1_MASK & ~SMU_PPUSATD1_SMU); in soc_prep_hook()
96 SAU->CTRL = SAU_CTRL_ALLNS_Msk; in soc_prep_hook()
101 SMU->IF_CLR = SMU_IF_PPUSEC | SMU_IF_BMPUSEC; in soc_prep_hook()
102 SMU->IEN = SMU_IEN_PPUSEC | SMU_IEN_BMPUSEC; in soc_prep_hook()