diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2024-02-13 16:17:39 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2024-02-16 12:57:54 +0100 |
commit | 03980be2951c1a4b6ec8968d0744d5f00f670fac (patch) | |
tree | a8fee79fa1bb7e793c660f77a22471e4aa356677 | |
parent | 12bd059c14af6b02670f06a182dad18c8a0a12be (diff) | |
download | barebox-03980be2951c.tar.gz barebox-03980be2951c.tar.xz |
hab: drop incomplete i.MX28 support
HAB for i.MX28 was introduced with the first commit adding HAB support,
but was never fully implemented for i.MX28. Remove it.
Link: https://lore.barebox.org/20240213151744.307958-2-s.hauer@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | drivers/hab/habv4.c | 23 | ||||
-rw-r--r-- | include/hab.h | 5 |
2 files changed, 0 insertions, 28 deletions
diff --git a/drivers/hab/habv4.c b/drivers/hab/habv4.c index 6440ef7f51..d8e5732adf 100644 --- a/drivers/hab/habv4.c +++ b/drivers/hab/habv4.c @@ -20,7 +20,6 @@ #include <mach/imx/generic.h> #include <mach/imx/imx8mq.h> -#define HABV4_RVT_IMX28 0xffff8af8 #define HABV4_RVT_IMX6_OLD 0x00000094 #define HABV4_RVT_IMX6_NEW 0x00000098 #define HABV4_RVT_IMX6UL 0x00000100 @@ -720,25 +719,3 @@ static int init_imx6_hab_get_status(void) * faulting. */ postmmu_initcall(init_imx6_hab_get_status); - -int imx28_hab_get_status(void) -{ - const struct habv4_rvt *rvt = (void *)HABV4_RVT_IMX28; - - return habv4_get_status(rvt); -} - -static int init_imx28_hab_get_status(void) -{ - if (!cpu_is_mx28()) - /* can happen in multi-image builds and is not an error */ - return 0; - - - /* nobody will check the return value if there were HAB errors, but the - * initcall will fail spectaculously with a strange error message. */ - imx28_hab_get_status(); - return 0; -} -/* i.MX28 ROM code can be run after MMU setup to make use of caching */ -postmmu_initcall(init_imx28_hab_get_status); diff --git a/include/hab.h b/include/hab.h index ebe19ce357..d0952e9376 100644 --- a/include/hab.h +++ b/include/hab.h @@ -21,14 +21,9 @@ enum habv4_state { }; #ifdef CONFIG_HABV4 -int imx28_hab_get_status(void); int imx6_hab_get_status(void); int habv4_get_state(void); #else -static inline int imx28_hab_get_status(void) -{ - return -EPERM; -} static inline int imx6_hab_get_status(void) { return -EPERM; |