]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: stm32mp1: read OTP in command stboard
authorPatrick Delaunay <patrick.delaunay@st.com>
Wed, 12 Feb 2020 18:37:36 +0000 (19:37 +0100)
committerPatrick 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

index b740f4510ea54c6b1ff0bb223b5974d0324c2750..c7ca773b1c8b92541f8aa6b15e894ca8f26c3204 100644 (file)
@@ -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) {