From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrice CHOTARD Date: Wed, 18 Mar 2020 10:05:09 +0000 Subject: [Uboot-stm32] [PATCH 02/10] board: stm32mp1: read OTP in command stboard In-Reply-To: <20200212183744.5309-3-patrick.delaunay@st.com> References: <20200212183744.5309-1-patrick.delaunay@st.com> <20200212183744.5309-3-patrick.delaunay@st.com> Message-ID: <7d6e84c1-ac0a-d993-74e6-76473cd41403@st.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 2/12/20 7:37 PM, Patrick Delaunay wrote: > 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 > --- > > board/st/common/cmd_stboard.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/board/st/common/cmd_stboard.c b/board/st/common/cmd_stboard.c > index b740f4510e..c7ca773b1c 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) { Acked-by: Patrice Chotard Thanks Patrice