avb: provide read/write vboot state function for fastboot
Change-Id: I197868d00a24719ce504a25fb81dc1577d2a214e Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
This commit is contained in:
parent
7bc1707d3f
commit
5170bcddec
|
|
@ -16,5 +16,7 @@ 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 read_flash_lock_state(uint8_t *flash_lock_state);
|
||||||
int write_flash_lock_state(uint8_t flash_lock_state);
|
int write_flash_lock_state(uint8_t flash_lock_state);
|
||||||
|
int read_lock_state(uint8_t *lock_state);
|
||||||
|
int write_lock_state(uint8_t lock_state);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -410,3 +410,17 @@ int write_flash_lock_state(uint8_t flash_lock_state)
|
||||||
return -1;
|
return -1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int read_lock_state(uint8_t *lock_state)
|
||||||
|
{
|
||||||
|
if (trusty_read_lock_state(lock_state))
|
||||||
|
return -1;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int write_lock_state(uint8_t lock_state)
|
||||||
|
{
|
||||||
|
if (trusty_write_lock_state(lock_state))
|
||||||
|
return -1;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue