mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-19 03:15:00 +00:00
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:
parent
a7a96a37cb
commit
0a245862c2
6 changed files with 8 additions and 8 deletions
|
@ -132,13 +132,13 @@ enum hab_target {
|
||||||
HAB_TGT_ANY = 0x55,
|
HAB_TGT_ANY = 0x55,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct imx_sec_config_fuse_t {
|
struct imx_fuse {
|
||||||
int bank;
|
int bank;
|
||||||
int word;
|
int word;
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined(CONFIG_IMX_HAB)
|
#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
|
#endif
|
||||||
|
|
||||||
/*Function prototype description*/
|
/*Function prototype description*/
|
||||||
|
|
|
@ -870,8 +870,8 @@ static int validate_ivt(struct ivt *ivt_initial)
|
||||||
|
|
||||||
bool imx_hab_is_enabled(void)
|
bool imx_hab_is_enabled(void)
|
||||||
{
|
{
|
||||||
struct imx_sec_config_fuse_t *fuse =
|
struct imx_fuse *fuse =
|
||||||
(struct imx_sec_config_fuse_t *)&imx_sec_config_fuse;
|
(struct imx_fuse *)&imx_sec_config_fuse;
|
||||||
uint32_t reg;
|
uint32_t reg;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
#if defined(CONFIG_IMX_HAB)
|
#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,
|
.bank = 1,
|
||||||
.word = 3,
|
.word = 3,
|
||||||
};
|
};
|
||||||
|
|
|
@ -51,7 +51,7 @@ U_BOOT_DRVINFO(imx6_thermal) = {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_IMX_HAB)
|
#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,
|
.bank = 0,
|
||||||
.word = 6,
|
.word = 6,
|
||||||
};
|
};
|
||||||
|
|
|
@ -127,7 +127,7 @@ static void isolate_resource(void)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_IMX_HAB)
|
#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,
|
.bank = 1,
|
||||||
.word = 3,
|
.word = 3,
|
||||||
};
|
};
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
static char *get_reset_cause(char *);
|
static char *get_reset_cause(char *);
|
||||||
|
|
||||||
#if defined(CONFIG_IMX_HAB)
|
#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,
|
.bank = 29,
|
||||||
.word = 6,
|
.word = 6,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue