commit | 8e32b0b72be3b109a921bcb33778eb515d27ef70 | [log] [tgz] |
---|---|---|
author | Bhavik Patel <bhavik.patel@arm.com> | Tue Jun 23 13:48:25 2020 +0200 |
committer | Bhavik Patel <bhavik.patel@arm.com> | Thu Jul 02 19:00:39 2020 +0200 |
tree | 7554a04678112784861cbed80d1e41a8a3215efd | |
parent | a20e5a734a0d211c7e4395b6e5d7519d28a96b3c [diff] |
Move PMU functions from pmu_ethosu.h to ethosu_pmu.c This change is done as a prerequisite to be able to set base address for NPU through ethosu_init(). So instead of using a mamory mapped struct we use the same functions to read/write PMU registers as the rest of the ethos-u driver. Change-Id: Ie1f6e6af4627cbe9375e2b2d079ba8017b6294d3
This repository contains a device driver for the Ethos-u NPU.
The source code comes with a CMake based build system. The driver is expeced to be cross compiled for any of the supported Arm Cortex-m CPUs, which will require the user to setup a custom toolchain file.
The user is also required to define CMAKE_SYSTEM_PROCESSOR
for the target CPU, for example cortex-m55+nodsp+nofp. This can be done either in the toolchain file or on the command line.
$ mkdir build $ cd build $ cmake .. -DCMAKE_TOOLCHAIN_FILE=<toolchain> -DCMAKE_SYSTEM_PROCESSOR=cortex-m<nr><features> $ make