common: image: add weak fit_read_otp_rollback_index()
Board should implement it. Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I95023ce489c4335fdd9034d9577ce242eac0f1ea
This commit is contained in:
parent
e5ca21e884
commit
9db5ffeb00
|
|
@ -474,6 +474,12 @@ int fit_config_verify(const void *fit, int conf_noffset)
|
||||||
|
|
||||||
#ifndef USE_HOSTCC
|
#ifndef USE_HOSTCC
|
||||||
#if CONFIG_IS_ENABLED(FIT_ROLLBACK_PROTECT)
|
#if CONFIG_IS_ENABLED(FIT_ROLLBACK_PROTECT)
|
||||||
|
__weak int fit_read_otp_rollback_index(uint32_t fit_index, uint32_t *otp_index)
|
||||||
|
{
|
||||||
|
*otp_index = 0;
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
__weak int fit_rollback_index_verify(const void *fit, uint32_t rollback_fd,
|
__weak int fit_rollback_index_verify(const void *fit, uint32_t rollback_fd,
|
||||||
uint32_t *this_index, uint32_t *min_index)
|
uint32_t *this_index, uint32_t *min_index)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1067,8 +1067,11 @@ int fit_check_format(const void *fit);
|
||||||
|
|
||||||
int fit_conf_find_compat(const void *fit, const void *fdt);
|
int fit_conf_find_compat(const void *fit, const void *fdt);
|
||||||
int fit_conf_get_node(const void *fit, const char *conf_uname);
|
int fit_conf_get_node(const void *fit, const char *conf_uname);
|
||||||
|
|
||||||
|
/* __weak function */
|
||||||
int fit_rollback_index_verify(const void *fit, uint32_t rollback_fd,
|
int fit_rollback_index_verify(const void *fit, uint32_t rollback_fd,
|
||||||
uint32_t *fit_index, uint32_t *otp_index);
|
uint32_t *fit_index, uint32_t *otp_index);
|
||||||
|
int fit_read_otp_rollback_index(uint32_t fit_index, uint32_t *otp_index);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* fit_conf_get_prop_node() - Get node refered to by a configuration
|
* fit_conf_get_prop_node() - Get node refered to by a configuration
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue