]> git.baikalelectronics.ru Git - arm-tf.git/commit
feat(ethos-n): add check for NPU in SiP setup
authorMikael Olsson <mikael.olsson@arm.com>
Wed, 18 Jan 2023 17:05:15 +0000 (18:05 +0100)
committerJoanna Farley <joanna.farley@arm.com>
Tue, 4 Apr 2023 09:37:06 +0000 (11:37 +0200)
commita2cdbb1df088cde410aea1d5989dfc500aaf7939
tree7c711b682846b80219b622cbf0574909430d1235
parent33bcaed1211ab27968433b546979687bc1182630
feat(ethos-n): add check for NPU in SiP setup

The SiP service in the Arm(R) Ethos(TM)-N NPU driver requires that there
is at least one NPU available. If there is no NPU available, the driver
is either used incorrectly or the HW config is incorrect.

To ensure that the SiP service is not incorrectly used, a setup handler
has been added to the service that will validate that there is at least
one NPU available.

Signed-off-by: Mikael Olsson <mikael.olsson@arm.com>
Change-Id: I8139a652f265cfc0db4a37464f39f1fb92868e10
drivers/arm/ethosn/ethosn_smc.c
include/drivers/arm/ethosn.h
plat/arm/common/arm_sip_svc.c