diff options
| author | Peng Fan <[email protected]> | 2025-11-04 18:05:50 +0800 |
|---|---|---|
| committer | Fabio Estevam <[email protected]> | 2025-11-04 12:45:30 -0300 |
| commit | e76f9a7c9720ea3be3afe4d28fa494c8535bc505 (patch) | |
| tree | 9f78d65421f947627315ae6fc670e28cf60e721a /include/remoteproc.h | |
| parent | 69ba00627548feb501d1dc0915b41b606e1d8392 (diff) | |
remoteproc: Extend device_to_virt with a is_iomem parameter
Some areas needs to be initialized by using memcpy_toio and memset_io.
Following Linux Kernel commit: 40df0a91b2a5 ("remoteproc: add is_iomem to
da_to_va"), add this to U-Boot.
Reviewed-by: Ye Li <[email protected]>
Signed-off-by: Peng Fan <[email protected]>
Diffstat (limited to 'include/remoteproc.h')
| -rw-r--r-- | include/remoteproc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/remoteproc.h b/include/remoteproc.h index 6f8068e1496..9adc3d17d8f 100644 --- a/include/remoteproc.h +++ b/include/remoteproc.h @@ -495,9 +495,10 @@ struct dm_rproc_ops { * @dev: Remote proc device * @da: Device address * @size: Size of the memory region @da is pointing to + * @is_iomem: optional pointer filled in to indicate if @da is iomapped memory * @return virtual address. */ - void * (*device_to_virt)(struct udevice *dev, ulong da, ulong size); + void * (*device_to_virt)(struct udevice *dev, ulong da, ulong size, bool *is_iomem); int (*add_res)(struct udevice *dev, struct rproc_mem_entry *mapping); void * (*alloc_mem)(struct udevice *dev, unsigned long len, |
