aboutsummaryrefslogtreecommitdiff
path: root/src/ethosu_driver.c
AgeCommit message (Collapse)Author
2020-08-24Base pointer offset and soft resetKristofer Jonsson
Allow user to define a base pointer offset, if the CPU and the NPU have address spaces offseted from each other. Soft reset NPU before every inference. Added log prints. Change-Id: I98a746d20dc780fefa23ad68816f5ba2ba2e6c6e
2020-07-22MLBEDSW-2594 Initialize the Ethos-U before every jobBhavik Patel
This includes resetting the Ethos-U and restoring the previosuly saved PMU configuration (if any). Change-Id: Id952fb6fef513468952b6a469e857510f8c0214c
2020-07-03MLBEDSW-2378 Set NPU base address in ethosu_initBhavik Patel
Change-Id: I1145834000ff81d6e497a8fa77bf997478a80372
2020-06-26MLBEDSW-2447 Set clock_q_enable & power_q_enable correctlyBhavik Patel
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
2020-06-16Allow differing arch patch versions20.06Douglas Troha
* Arch patch versions should be backward compatible Signed-off-by: Douglas Troha <douglas.troha@arm.com> Change-Id: I1b0d292d0885af90d5b39f2239e020af9181008b
2020-06-12Move command stream and base address alignment checksBhavik Patel
Moving the alignment checks for command stream and base addresses to handle_command_stream(). This is done so that applications which directly call ethosu_run_command_stream(), and don't have command stream & base addresses properly aligned can still run the command stream. Change-Id: Ie02e9952af027e3017e53ea7217698a33a33b418
2020-06-05MLBEDSW-2272 Reenable the version checker for optimizer configBhavik Patel
Also check that the command stream address and base address are aligned to 16 bytes. Return error in case they are not correctly aligned. Change-Id: I786d03f403d02d601ee74c53d2dede85b2b0e8a0
2020-05-26MLBEDSW-2288: Set default/configurable AXI valuesJonny Svärd
Change-Id: I2e72d26699e07b12b42832b59e23b3083c59d1d8
2020-05-15Log updatesKristofer Jonsson
Rename CMake log variable. Make logging default off. Remove CMake setting compile features. Remove FPGA flag around soft reset. Change-Id: Ia1f1c314ad19e9e05c59efe1a16d5670f6ec0f69
2020-05-11MLBEDSW-1796 Refactor IRQ initializationPer Åstrand
Turn the IRQ initialization around, to have the application define the interrupt handler and expose the driver routine that is to be called when that happens. Change-Id: Idbfba1b1d1a1eaf6678ee16e9583c496eb2287ed
2020-04-16Add Ethos-u core driverKristofer Jonsson
Change-Id: I541862775031c21e6483f26446a29dfe452382ab