aboutsummaryrefslogtreecommitdiff
path: root/kernel/ethosu_device.c
diff options
context:
space:
mode:
authorMikael Olsson <mikael.olsson@arm.com>2023-06-05 16:16:36 +0200
committerMikael Olsson <mikael.olsson@arm.com>2023-09-25 15:01:34 +0200
commit9d0ea8bc126833da28508a0836d02fa437489bab (patch)
tree06146e7e3093c0a35fdb8c7973225ed678bd15f3 /kernel/ethosu_device.c
parenta45260efce33ecb55a37545212ff9e5da244c4e9 (diff)
downloadethos-u-linux-driver-stack-9d0ea8bc126833da28508a0836d02fa437489bab.tar.gz
Add resource table entry for address translation
To avoid having to use a hardcoded memory map to translate between the Linux physical addresses to device addresses in the firmware, a new entry type has been added to the resource table that allows the NPU remoteproc driver to provide the memory map to the firmware. With this change, the device tree layout has been changed to wrap the ethosu-rproc node with an ethosu parent node that represents the NPU subsystem. This makes it possible to use the APIs provided by the Linux kernel to perform address translation etc. The "ethosu,dma-ranges" property has been removed from ethosu-proc because the ethosu parent node provides information for how to translate between the Linux Kernel physical addresses and device addresses with a "dma-ranges" property. Change-Id: I48719ee808a5e9391c5a3e967042d26dd92d5026 Signed-off-by: Mikael Olsson <mikael.olsson@arm.com>
Diffstat (limited to 'kernel/ethosu_device.c')
0 files changed, 0 insertions, 0 deletions