Skip to content

Commit

Permalink
drivers: imx_csu: add settings for i.MX6
Browse files Browse the repository at this point in the history
Add the CSU SA settings for i.MX6(Q/D). This setting ensures that no
non-TrustZone aware master is able to read secure memory. Information on
the CSU SA register values were taken from i.MX6 Security Reference
Manual rev 0.

Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Reviewed-by: Sahil Malhotra <sahil.malhotra@nxp.com>
  • Loading branch information
Emantor authored and jforissier committed Nov 7, 2024
1 parent 7faa85d commit 9b2c7a6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/drivers/imx_csu.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,12 @@ const struct csu_setting csu_setting_imx7ds[] = {
{(-1), 0},
};

/* Set all masters to non-secure except the Cortex-A7 */
/* Set all masters to non-secure except the Cortex-A cores */
const struct csu_sa_setting csu_sa_imx6 = { 0x15554554, 0x2aaa8aaa };
const struct csu_sa_setting csu_sa_imx6ul = { 0x10554550, 0x20aa8aa2 };
const struct csu_sa_setting csu_sa_imx7ds = { 0x15554554, 0x2aaa8aaa };

const struct csu_config csu_imx6 = { NULL, csu_setting_imx6 };
const struct csu_config csu_imx6 = { &csu_sa_imx6, csu_setting_imx6 };
const struct csu_config csu_imx6ul = { &csu_sa_imx6ul, csu_setting_imx6ul };
const struct csu_config csu_imx6ull = { NULL, csu_setting_imx6ull };
const struct csu_config csu_imx6sl = { NULL, csu_setting_imx6sl };
Expand Down

0 comments on commit 9b2c7a6

Please sign in to comment.