aboutsummaryrefslogtreecommitdiff
path: root/board/st/common
diff options
context:
space:
mode:
authorPatrick Delaunay2020-02-12 19:37:36 +0100
committerPatrick Delaunay2020-03-24 14:05:35 +0100
commitfdabacecf0af242d92e312faa4df6c24857f8935 (patch)
treeb6322987be72c49de1e2917bf2b5a06bf0e45389 /board/st/common
parent16aa3e3fdcd36b9a26be54656c9747fb59f8bb3b (diff)
board: stm32mp1: read OTP in command stboard
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>
Diffstat (limited to 'board/st/common')
-rw-r--r--board/st/common/cmd_stboard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/st/common/cmd_stboard.c b/board/st/common/cmd_stboard.c
index b740f4510ea..c7ca773b1c8 100644
--- 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) {