summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-02-14 09:29:48 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2020-02-19 08:30:31 +0100
commitc41c06b53c9e45118aac8c3c6a2fd3d216e2377b (patch)
tree8d6a9dc0bde4e93311a46fbb9af359cbbc4e1234 /drivers
parent2963bb8fa61b55a708943d6809aa0e41bf7d7fd6 (diff)
downloadbarebox-c41c06b53c9e45118aac8c3c6a2fd3d216e2377b.tar.gz
HAB: i.MX8M: rename imx8_* functions to imx8m_*
The big i.MX8 does HAB through the SCU which will be different. To avoid confusion rename the functions to imx8m_* Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/hab/habv4.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/hab/habv4.c b/drivers/hab/habv4.c
index e3c1de1..f0a087d 100644
--- a/drivers/hab/habv4.c
+++ b/drivers/hab/habv4.c
@@ -213,7 +213,7 @@ static enum hab_status hab_sip_report_status(enum hab_config *config,
return (enum hab_status)res.a0;
}
-static enum hab_status imx8_read_sram_events(enum hab_status status,
+static enum hab_status imx8m_read_sram_events(enum hab_status status,
uint32_t index, void *event,
uint32_t *bytes)
{
@@ -262,7 +262,7 @@ static enum hab_status imx8_read_sram_events(enum hab_status status,
struct habv4_rvt hab_smc_ops = {
.header = { .tag = 0xdd },
- .report_event = imx8_read_sram_events,
+ .report_event = imx8m_read_sram_events,
.report_status = hab_sip_report_status,
};
@@ -585,12 +585,12 @@ int imx6_hab_get_status(void)
return -EINVAL;
}
-static int imx8_hab_get_status(void)
+static int imx8m_hab_get_status(void)
{
return habv4_get_status(&hab_smc_ops);
}
-static int init_imx8_hab_get_status(void)
+static int init_imx8m_hab_get_status(void)
{
if (!cpu_is_mx8mq())
/* can happen in multi-image builds and is not an error */
@@ -600,7 +600,7 @@ static int init_imx8_hab_get_status(void)
* Nobody will check the return value if there were HAB errors, but the
* initcall will fail spectaculously with a strange error message.
*/
- imx8_hab_get_status();
+ imx8m_hab_get_status();
return 0;
}
@@ -610,7 +610,7 @@ static int init_imx8_hab_get_status(void)
*
*
*/
-postmmu_initcall(init_imx8_hab_get_status);
+postmmu_initcall(init_imx8m_hab_get_status);
static int init_imx6_hab_get_status(void)
{