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>
  • Loading branch information
Emantor committed Oct 29, 2024
1 parent 8f64525 commit aa8ff4d
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, 0x2aaa8aa8 };
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 aa8ff4d

Please sign in to comment.