1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * SLIM core rproc driver header
5 * Copyright (C) 2016 STMicroelectronics
7 * Author: Peter Griffin <peter.griffin@linaro.org>
9 #ifndef _ST_REMOTEPROC_SLIM_H
10 #define _ST_REMOTEPROC_SLIM_H
12 #define ST_SLIM_MEM_MAX 2
13 #define ST_SLIM_MAX_CLK 4
21 * struct st_slim_mem - slim internal memory structure
22 * @cpu_addr: MPU virtual address of the memory region
23 * @bus_addr: Bus address used to access the memory region
24 * @size: Size of the memory region
27 void __iomem
*cpu_addr
;
33 * struct st_slim_rproc - SLIM slim core
34 * @rproc: rproc handle
35 * @mem: slim memory information
36 * @slimcore: slim slimcore regs
37 * @peri: slim peripheral regs
40 struct st_slim_rproc
{
42 struct st_slim_mem mem
[ST_SLIM_MEM_MAX
];
43 void __iomem
*slimcore
;
46 /* st_slim_rproc private */
47 struct clk
*clks
[ST_SLIM_MAX_CLK
];
50 struct st_slim_rproc
*st_slim_rproc_alloc(struct platform_device
*pdev
,
52 void st_slim_rproc_put(struct st_slim_rproc
*slim_rproc
);