Skip to content

Commit 0c496f6

Browse files
committed
firmware: rockchip_sip: add sip_firmware_init for ARM64
Change-Id: Ic215ad4801eefd0311622c7384301f462d5f7be7 Signed-off-by: XiaoDong Huang <[email protected]>
1 parent 8381931 commit 0c496f6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/firmware/rockchip_sip.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,13 +391,14 @@ void sip_fiq_debugger_enable_fiq(bool enable, uint32_t tgt_cpu)
391391
}
392392

393393
/******************************************************************************/
394-
#ifdef CONFIG_ARM
395394
static __init int sip_firmware_init(void)
396395
{
397396
struct arm_smccc_res res;
398397

398+
#ifdef CONFIG_ARM
399399
if (!psci_smp_available())
400400
return 0;
401+
#endif
401402

402403
/*
403404
* OP-TEE works on kernel 3.10 and 4.4 and we have different sip
@@ -408,6 +409,7 @@ static __init int sip_firmware_init(void)
408409
if (IS_SIP_ERROR(res.a0))
409410
pr_err("%s: set rockchip sip version v2 failed\n", __func__);
410411

412+
#ifdef CONFIG_ARM
411413
/*
412414
* Currently, we support:
413415
*
@@ -431,8 +433,8 @@ static __init int sip_firmware_init(void)
431433
firmware_64_32bit = FIRMWARE_ATF_64BIT;
432434
break;
433435
}
436+
#endif
434437

435438
return 0;
436439
}
437440
arch_initcall(sip_firmware_init);
438-
#endif

0 commit comments

Comments
 (0)