mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
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 <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user