diff options
author | Stefan Kerkmann <s.kerkmann@pengutronix.de> | 2024-02-28 14:14:10 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2024-03-13 12:00:29 +0100 |
commit | 33c7345695a892b5fc6d2c36f7a1dd717db90456 (patch) | |
tree | 28f797248489e0e84655ce9cfc8e9da50003fea2 /drivers/soc | |
parent | 60a3fd36fa1eed2f58c627adddbe3492e70ebfe2 (diff) | |
download | barebox-33c7345695a892b5fc6d2c36f7a1dd717db90456.tar.gz barebox-33c7345695a892b5fc6d2c36f7a1dd717db90456.tar.xz |
arm: mach-imx: tzasc: convert to cpu_is_mx8xyz macros
Instead of passing in configuration parameters at runtime we can utilize
the `cpu_is_mx8xyz` macro family to determine which bits should be set.
As the tzasc driver is imx specific, all functions are prefixed with
`imx8m_` as well.
Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Stefan Kerkmann <s.kerkmann@pengutronix.de>
Link: https://lore.barebox.org/20240228-v2024-02-0-topic-imx8m-n-p-tzac-v2-3-ee1ae48dc399@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/soc')
-rw-r--r-- | drivers/soc/imx/soc-imx8m.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/imx/soc-imx8m.c b/drivers/soc/imx/soc-imx8m.c index 48b42a1b17..1b47c914de 100644 --- a/drivers/soc/imx/soc-imx8m.c +++ b/drivers/soc/imx/soc-imx8m.c @@ -208,7 +208,7 @@ static int imx8_soc_imx8m_init(struct soc_device_attribute *soc_dev_attr) imx_set_reset_reason(src + IMX7_SRC_SRSR, imx7_reset_reasons); pr_info("%s unique ID: %s\n", cputypestr, uid); - if (IS_ENABLED(CONFIG_PBL_OPTEE) && tzc380_is_enabled()) { + if (IS_ENABLED(CONFIG_PBL_OPTEE) && imx8m_tzc380_is_enabled()) { static struct of_optee_fixup_data optee_fixup_data = { .shm_size = OPTEE_SHM_SIZE, .method = "smc", |