summaryrefslogtreecommitdiff
path: root/board/toradex
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2023-06-15 13:08:59 +0300
committerStefano Babic <sbabic@denx.de>2023-07-13 12:29:40 +0300
commitbfb3409d676f5089ae91d63aa2e9244130477e14 (patch)
tree8fd8a5a88a108981833f5e3d89af4f7d5b764678 /board/toradex
parentdd654caac0ea10bbf40d09985cccc8c9d9294287 (diff)
downloadu-boot-bfb3409d676f5089ae91d63aa2e9244130477e14.tar.xz
imx: toradex/apalis-imx8: correct SCU API usage
The return value is int type, not sc_err_t(u8), correct the usage. Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'board/toradex')
-rw-r--r--board/toradex/apalis-imx8/apalis-imx8.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/board/toradex/apalis-imx8/apalis-imx8.c b/board/toradex/apalis-imx8/apalis-imx8.c
index aa76c486ee..e2bbaba8b8 100644
--- a/board/toradex/apalis-imx8/apalis-imx8.c
+++ b/board/toradex/apalis-imx8/apalis-imx8.c
@@ -85,18 +85,18 @@ static void setup_iomux_uart(void)
static uint32_t do_get_tdx_user_fuse(int a, int b)
{
- sc_err_t sciErr;
+ int sciErr;
u32 val_a = 0;
u32 val_b = 0;
sciErr = sc_misc_otp_fuse_read(-1, a, &val_a);
- if (sciErr != SC_ERR_NONE) {
+ if (sciErr) {
printf("Error reading out user fuse %d\n", a);
return 0;
}
sciErr = sc_misc_otp_fuse_read(-1, b, &val_b);
- if (sciErr != SC_ERR_NONE) {
+ if (sciErr) {
printf("Error reading out user fuse %d\n", b);
return 0;
}
@@ -131,9 +131,9 @@ void board_mem_get_layout(u64 *phys_sdram_1_start,
{
u32 is_quadplus = 0, val = 0;
struct tdx_user_fuses tdxramfuses;
- sc_err_t scierr = sc_misc_otp_fuse_read(-1, 6, &val);
+ int scierr = sc_misc_otp_fuse_read(-1, 6, &val);
- if (scierr == SC_ERR_NONE) {
+ if (scierr) {
/* QP has one A72 core disabled */
is_quadplus = ((val >> 4) & 0x3) != 0x0;
}