u-boot/board/toradex/apalis-imx8
Fabio Estevam cd7af7ee5a apalis-imx8: Fix sc_misc_otp_fuse_read() error check
Commit bfb3409d67 ("imx: toradex/apalis-imx8: correct SCU API usage")
made an incorrect logic change in the error code check of
sc_misc_otp_fuse_read():

-       if (scierr == SC_ERR_NONE) {
+       if (scierr) {
                /* QP has one A72 core disabled */
                is_quadplus = ((val >> 4) & 0x3) != 0x0;
        }

The other changes in this commit are correct.

sc_misc_otp_fuse_read() returns 0 on a successful fuse read.

This inversion causes board_mem_get_layout() to report incorrect RAM size.

Go back the original error check logic to fix the problem.

Fixes: bfb3409d67 ("imx: toradex/apalis-imx8: correct SCU API usage")
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
2024-03-17 17:59:50 -03:00
..
apalis-imx8-imximage.cfg imx: Don't define __ASSEMBLY__ in source files 2022-02-08 23:07:58 -05:00
apalis-imx8.c apalis-imx8: Fix sc_misc_otp_fuse_read() error check 2024-03-17 17:59:50 -03:00
Kconfig board: apalis-imx8: add 2nd ethernet address 2023-01-31 15:46:40 +01:00
MAINTAINERS MAINTAINERS: Add a number of "common" directories 2023-07-25 12:44:47 -04:00
Makefile board: toradex: add apalis imx8qm 4gb wb it v1.0b module support 2019-06-11 10:42:48 +02:00