stpmic1: add NVM update support in fuse command
Add functions to read/update the non volatile memory of STPMIC1 (8 bytes-register at 0xF8 address) and allow access with fuse command (bank=1, word > 0xF8). For example: STM32MP> fuse read 1 0xf8 8 Reading bank 1: Word 0x000000f8: 000000ee 00000092 000000c0 00000002 Word 0x000000fc: 000000f2 00000080 00000002 00000033 Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
This commit is contained in:
@@ -107,4 +107,11 @@ enum {
|
||||
STPMIC1_PWR_SW2,
|
||||
STPMIC1_MAX_PWR_SW,
|
||||
};
|
||||
|
||||
int stpmic1_shadow_read_byte(u8 addr, u8 *buf);
|
||||
int stpmic1_shadow_write_byte(u8 addr, u8 *buf);
|
||||
int stpmic1_nvm_read_byte(u8 addr, u8 *buf);
|
||||
int stpmic1_nvm_write_byte(u8 addr, u8 *buf);
|
||||
int stpmic1_nvm_read_all(u8 *buf, int buf_len);
|
||||
int stpmic1_nvm_write_all(u8 *buf, int buf_len);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user