projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16aa3e3
)
board: stm32mp1: read OTP in command stboard
author
Patrick Delaunay
<patrick.delaunay@st.com>
Wed, 12 Feb 2020 18:37:36 +0000
(19:37 +0100)
committer
Patrick Delaunay
<patrick.delaunay@st.com>
Tue, 24 Mar 2020 13:05:35 +0000
(14:05 +0100)
Read the value directly from the OTP and no more of the shadows
to avoid the need of reboot after stboard command to have correct value.
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Acked-by: Patrice Chotard <patrice.chotard@st.com>
board/st/common/cmd_stboard.c
patch
|
blob
|
history
diff --git
a/board/st/common/cmd_stboard.c
b/board/st/common/cmd_stboard.c
index b740f4510ea54c6b1ff0bb223b5974d0324c2750..c7ca773b1c8b92541f8aa6b15e894ca8f26c3204 100644
(file)
--- a/
board/st/common/cmd_stboard.c
+++ b/
board/st/common/cmd_stboard.c
@@
-58,7
+58,7
@@
static int do_stboard(cmd_tbl_t *cmdtp, int flag, int argc,
DM_GET_DRIVER(stm32mp_bsec),
&dev);
- ret = misc_read(dev, STM32_BSEC_
SHADOW
(BSEC_OTP_BOARD),
+ ret = misc_read(dev, STM32_BSEC_
OTP
(BSEC_OTP_BOARD),
&otp, sizeof(otp));
if (ret < 0) {