mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-09-30 18:21:28 +02:00
stm32mp1: update test on misc_read result
Update the stm32mp1 baord after the commit 8729b1ae2cbd ("misc: Update read() and write() methods to return bytes xfered") Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
This commit is contained in:
parent
ef32dcf119
commit
19efa39556
@ -103,7 +103,7 @@ int checkboard(void)
|
|||||||
if (!ret)
|
if (!ret)
|
||||||
ret = misc_read(dev, STM32_BSEC_SHADOW(BSEC_OTP_BOARD),
|
ret = misc_read(dev, STM32_BSEC_SHADOW(BSEC_OTP_BOARD),
|
||||||
&otp, sizeof(otp));
|
&otp, sizeof(otp));
|
||||||
if (!ret && otp) {
|
if (ret > 0 && otp) {
|
||||||
printf("Board: MB%04x Var%d Rev.%c-%02d\n",
|
printf("Board: MB%04x Var%d Rev.%c-%02d\n",
|
||||||
otp >> 16,
|
otp >> 16,
|
||||||
(otp >> 12) & 0xF,
|
(otp >> 12) & 0xF,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user