diff options
author | Teo Hall <teo.hall@nxp.com> | 2017-05-03 17:46:41 -0500 |
---|---|---|
committer | Anson Huang <Anson.Huang@nxp.com> | 2017-07-12 23:17:24 +0800 |
commit | 828f5880c04d0e2acb1f0fc945ee22d5217478b3 (patch) | |
tree | 371a15e446d9bd753622175d95367d362b85527a /plat/freescale/imx8qm/imx8qm_bl31_setup.c | |
parent | eace8f82713d5d4292a5723a959a3ef3dd3a33c1 (diff) |
update secure partition and add NS access
add more resources to secure partition for
protection. Also add in functionality to allow
for register access of some secure-owned
peripherals.
These peripherals will still be protected from
power or clk changes.
Signed-off-by: Teo Hall <teo.hall@nxp.com>
Diffstat (limited to 'plat/freescale/imx8qm/imx8qm_bl31_setup.c')
-rw-r--r-- | plat/freescale/imx8qm/imx8qm_bl31_setup.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plat/freescale/imx8qm/imx8qm_bl31_setup.c b/plat/freescale/imx8qm/imx8qm_bl31_setup.c index 257ce7fc..fc52e453 100644 --- a/plat/freescale/imx8qm/imx8qm_bl31_setup.c +++ b/plat/freescale/imx8qm/imx8qm_bl31_setup.c @@ -206,6 +206,12 @@ void mx8_partition_resources(void) /* move all movable resources and pins to non-secure partition */ err = sc_rm_move_all(ipc_handle, secure_part, os_part, true, true); + /* iterate through peripherals to give NS OS part access */ + for(i = 0; i<(sizeof(ns_access_allowed)/sizeof(sc_rsrc_t)); i++){ + err = sc_rm_set_peripheral_permissions(ipc_handle, ns_access_allowed[i], + os_part, SC_RM_PERM_FULL); + } + /* * sc_rm_set_peripheral_permissions * |