imx: hab: rename imx_sec_config_fuse_t to imx_fuse

The imx_sec_config_fuse_t structure is not specific to the sec_config
fuse, but can be used for all fuse words.

Rename the structure to a more generic name to be reused for other
fuses.

Signed-off-by: Paul Geurts <paul.geurts@prodrive-technologies.com>
This commit is contained in:
Paul Geurts 2024-11-01 09:49:20 +01:00 committed by Fabio Estevam
parent a7a96a37cb
commit 0a245862c2
6 changed files with 8 additions and 8 deletions

View file

@ -132,13 +132,13 @@ enum hab_target {
HAB_TGT_ANY = 0x55,
};
struct imx_sec_config_fuse_t {
struct imx_fuse {
int bank;
int word;
};
#if defined(CONFIG_IMX_HAB)
extern struct imx_sec_config_fuse_t const imx_sec_config_fuse;
extern struct imx_fuse const imx_sec_config_fuse;
#endif
/*Function prototype description*/

View file

@ -870,8 +870,8 @@ static int validate_ivt(struct ivt *ivt_initial)
bool imx_hab_is_enabled(void)
{
struct imx_sec_config_fuse_t *fuse =
(struct imx_sec_config_fuse_t *)&imx_sec_config_fuse;
struct imx_fuse *fuse =
(struct imx_fuse *)&imx_sec_config_fuse;
uint32_t reg;
int ret;

View file

@ -37,7 +37,7 @@
DECLARE_GLOBAL_DATA_PTR;
#if defined(CONFIG_IMX_HAB)
struct imx_sec_config_fuse_t const imx_sec_config_fuse = {
struct imx_fuse const imx_sec_config_fuse = {
.bank = 1,
.word = 3,
};

View file

@ -51,7 +51,7 @@ U_BOOT_DRVINFO(imx6_thermal) = {
#endif
#if defined(CONFIG_IMX_HAB)
struct imx_sec_config_fuse_t const imx_sec_config_fuse = {
struct imx_fuse const imx_sec_config_fuse = {
.bank = 0,
.word = 6,
};

View file

@ -127,7 +127,7 @@ static void isolate_resource(void)
#endif
#if defined(CONFIG_IMX_HAB)
struct imx_sec_config_fuse_t const imx_sec_config_fuse = {
struct imx_fuse const imx_sec_config_fuse = {
.bank = 1,
.word = 3,
};

View file

@ -38,7 +38,7 @@
static char *get_reset_cause(char *);
#if defined(CONFIG_IMX_HAB)
struct imx_sec_config_fuse_t const imx_sec_config_fuse = {
struct imx_fuse const imx_sec_config_fuse = {
.bank = 29,
.word = 6,
};