mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 13:43:28 +00:00
apalis-imx8: Fix sc_misc_otp_fuse_read() error check
Commitbfb3409d67
("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>
This commit is contained in:
parent
fdd529fa62
commit
cd7af7ee5a
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ void board_mem_get_layout(u64 *phys_sdram_1_start,
|
|||
struct tdx_user_fuses tdxramfuses;
|
||||
int scierr = sc_misc_otp_fuse_read(-1, 6, &val);
|
||||
|
||||
if (scierr) {
|
||||
if (!scierr) {
|
||||
/* QP has one A72 core disabled */
|
||||
is_quadplus = ((val >> 4) & 0x3) != 0x0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue