avb: provide read-write flash_lock_state functions for fastboot
Change-Id: Id6135c58416b0b914d2de8b5d911bf9eb02c5c60 Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
This commit is contained in:
parent
ccc0859168
commit
023e4d5516
|
|
@ -14,5 +14,7 @@ int set_slot_active(unsigned int *slot_number);
|
||||||
int get_current_slot(char *select_slot);
|
int get_current_slot(char *select_slot);
|
||||||
int read_permanent_attributes(uint8_t *attributes, uint32_t size);
|
int read_permanent_attributes(uint8_t *attributes, uint32_t size);
|
||||||
int write_permanent_attributes(uint8_t *attributes, uint32_t size);
|
int write_permanent_attributes(uint8_t *attributes, uint32_t size);
|
||||||
|
int read_flash_lock_state(uint8_t *flash_lock_state);
|
||||||
|
int write_flash_lock_state(uint8_t flash_lock_state);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -396,3 +396,17 @@ int write_permanent_attributes(uint8_t *attributes, uint32_t size)
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int read_flash_lock_state(uint8_t *flash_lock_state)
|
||||||
|
{
|
||||||
|
if (trusty_read_flash_lock_state(flash_lock_state))
|
||||||
|
return -1;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int write_flash_lock_state(uint8_t flash_lock_state)
|
||||||
|
{
|
||||||
|
if (trusty_write_flash_lock_state(flash_lock_state))
|
||||||
|
return -1;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue