u-boot/board/toradex
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 apalis-imx8: Fix sc_misc_otp_fuse_read() error check 2024-03-17 17:59:50 -03:00
apalis-tk1 toradex: Remove not necessary model prints from checkboard() 2024-03-01 09:10:44 -05:00
apalis_imx6 toradex: Remove not necessary model prints from checkboard() 2024-03-01 09:10:44 -05:00
apalis_t30 toradex: Remove not necessary model prints from checkboard() 2024-03-01 09:10:44 -05:00
colibri-imx6ull toradex: Remove not necessary model prints from checkboard() 2024-03-01 09:10:44 -05:00
colibri-imx8x colibri-imx8x: Fix sc_misc_otp_fuse_read() error check 2024-03-17 17:59:32 -03:00
colibri_imx6 toradex: Remove not necessary model prints from checkboard() 2024-03-01 09:10:44 -05:00
colibri_imx7 toradex: Remove not necessary model prints from checkboard() 2024-03-01 09:10:44 -05:00
colibri_t20 toradex: Remove not necessary model prints from checkboard() 2024-03-01 09:10:44 -05:00
colibri_t30 toradex: Remove not necessary model prints from checkboard() 2024-03-01 09:10:44 -05:00
colibri_vf toradex: Remove not necessary model prints from checkboard() 2024-03-01 09:10:44 -05:00
common toradex: tdx-cfg-block: add 0087 i.mx8m mini product variant 2024-03-11 08:43:27 -03:00
verdin-am62 Revert "board: verdin-am62: set cpu core voltage depending on speed grade" 2024-02-13 15:38:49 -05:00
verdin-imx8mm board: toradex: verdin-imx8mm: set fixed LPDDR4 refresh rate as per errata ERR050805 2023-10-16 08:46:01 +02:00
verdin-imx8mp MAINTAINERS: Add a number of "common" directories 2023-07-25 12:44:47 -04:00