MLBEDSW-2447 Set clock_q_enable & power_q_enable correctly

Bit [2] in CMD register is used to enable clock off using
clock q-interface and enable the master clock gate. Bit [3] is
used to enable power off using power q-interface.

The clock_q_enable bit is set when putting the Ethos-U into run
state.

The power_q_enable bit is set to 0 when running the command stream
and set to 1 after command stream has finished running.

Change-Id: Id9d1405376508e2af2ec0ddc2ebae8fb6c2f5cba
2 files changed
tree: 735a0cc11d8c667dfa9f6be5865355e6807e0d36
  1. .clang-format
  2. CMakeLists.txt
  3. LICENSE.txt
  4. README.md
  5. include/
  6. src/
README.md

Ethos-u Core Driver

This repository contains a device driver for the Ethos-u NPU.

Building

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