From: Patrick Delaunay Date: Wed, 12 Feb 2020 18:37:36 +0000 (+0100) Subject: board: stm32mp1: read OTP in command stboard X-Git-Tag: v2020.10~292^2~6^2~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fdabacecf0af242d92e312faa4df6c24857f8935;p=platform%2Fkernel%2Fu-boot.git 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 Acked-by: Patrice Chotard --- diff --git a/board/st/common/cmd_stboard.c b/board/st/common/cmd_stboard.c index b740f45..c7ca773 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) {