diff options
author | Rob Hughes <robert.hughes@arm.com> | 2023-02-20 12:03:52 +0000 |
---|---|---|
committer | Joanna Farley <joanna.farley@arm.com> | 2023-04-04 11:38:00 +0200 |
commit | 6ce4c6c0bb347c8ddceb26bff33562e7e7469587 (patch) | |
tree | b76194f98c9dfdb674f8944fff625ce8af27acb8 /docs/getting_started | |
parent | 986c4e991ace5cb40bed35145184e66863c47152 (diff) | |
download | arm-trusted-firmware-6ce4c6c0bb347c8ddceb26bff33562e7e7469587.tar.gz |
docs(ethos-n): update porting-guide.rst for NPU
Add some missing configuration that must be done for supporting NPU on
other platforms.
Signed-off-by: Rob Hughes <robert.hughes@arm.com>
Signed-off-by: Mikael Olsson <mikael.olsson@arm.com>
Change-Id: Ic505ea60f73b970d0d7ded101830eb2ce8c7ab64
Diffstat (limited to 'docs/getting_started')
-rw-r--r-- | docs/getting_started/porting-guide.rst | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/docs/getting_started/porting-guide.rst b/docs/getting_started/porting-guide.rst index 1a4b107b6..ae3ffb554 100644 --- a/docs/getting_started/porting-guide.rst +++ b/docs/getting_started/porting-guide.rst @@ -574,8 +574,15 @@ optionally be defined: PLAT_PARTITION_BLOCK_SIZE := 4096 $(eval $(call add_define,PLAT_PARTITION_BLOCK_SIZE)) +If the platform port uses the Arm® Ethos™-N NPU driver, the following +configuration must be performed: + +- The NPU SiP service handler must be hooked up. This consists of both the + initial setup (``ethosn_smc_setup``) and the handler itself + (``ethosn_smc_handler``) + If the platform port uses the Arm® Ethos™-N NPU driver with TZMP1 support -enabled, the following constants must also be defined. +enabled, the following constants and configuration must also be defined: - **ARM_ETHOSN_NPU_PROT_FW_NSAID** @@ -604,7 +611,18 @@ enabled, the following constants must also be defined. - **ARM_ETHOSN_NPU_FW_IMAGE_BASE** and **ARM_ETHOSN_NPU_FW_IMAGE_LIMIT** -- Provide FCONF entries to configure the image source for NPU firmware (and certificates). + Defines the physical address range that the NPU's firmware will be loaded + into and executed from. + +- Configure the platforms TrustZone Controller (TZC) with appropriate regions + of protected memory. At minimum this must include a region for the NPU's + firmware code and a region for protected inference data, and these must be + accessible using the NSAIDs defined above. + +- Include the NPU firmware and certificates in the FIP. + +- Provide FCONF entries to configure the image source for the NPU firmware + and certificates. - Add MMU mappings such that: @@ -612,7 +630,8 @@ enabled, the following constants must also be defined. ``ARM_ETHOSN_NPU_FW_IMAGE_BASE`` and ``ARM_ETHOSN_NPU_FW_IMAGE_LIMIT`` - BL31 (SiP service) can read the NPU firmware from the same region -- Add the firmware image ID ``ARM_ETHOSN_NPU_FW_IMAGE_ID`` to the list of images loaded by BL2 +- Add the firmware image ID ``ARM_ETHOSN_NPU_FW_IMAGE_ID`` to the list of images + loaded by BL2. Please see the reference implementation code for the Juno platform as an example. |