diff options
Diffstat (limited to 'drivers/arm/ethosn/ethosn_smc.c')
-rw-r--r-- | drivers/arm/ethosn/ethosn_smc.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/arm/ethosn/ethosn_smc.c b/drivers/arm/ethosn/ethosn_smc.c index cf3491055..6b1ab85dc 100644 --- a/drivers/arm/ethosn/ethosn_smc.c +++ b/drivers/arm/ethosn/ethosn_smc.c @@ -286,3 +286,13 @@ uintptr_t ethosn_smc_handler(uint32_t smc_fid, SMC_RET1(handle, SMC_UNK); } } + +int ethosn_smc_setup(void) +{ + if (ETHOSN_NUM_DEVICES == 0U) { + ERROR("ETHOSN: No NPU found\n"); + return ETHOSN_FAILURE; + } + + return 0; +} |