File tree Expand file tree Collapse file tree 2 files changed +38
-27
lines changed Expand file tree Collapse file tree 2 files changed +38
-27
lines changed Original file line number Diff line number Diff line change 19
19
#include <linux/remoteproc.h>
20
20
#include <linux/workqueue.h>
21
21
22
+ #include "imx_rproc.h"
22
23
#include "remoteproc_internal.h"
23
24
24
25
#define IMX7D_SRC_SCR 0x0C
@@ -73,33 +74,6 @@ struct imx_rproc_mem {
73
74
#define ATT_OWN BIT(1)
74
75
#define ATT_IOMEM BIT(2)
75
76
76
- /* address translation table */
77
- struct imx_rproc_att {
78
- u32 da ; /* device address (From Cortex M4 view)*/
79
- u32 sa ; /* system bus address */
80
- u32 size ; /* size of reg range */
81
- int flags ;
82
- };
83
-
84
- /* Remote core start/stop method */
85
- enum imx_rproc_method {
86
- IMX_RPROC_NONE ,
87
- /* Through syscon regmap */
88
- IMX_RPROC_MMIO ,
89
- /* Through ARM SMCCC */
90
- IMX_RPROC_SMC ,
91
- };
92
-
93
- struct imx_rproc_dcfg {
94
- u32 src_reg ;
95
- u32 src_mask ;
96
- u32 src_start ;
97
- u32 src_stop ;
98
- const struct imx_rproc_att * att ;
99
- size_t att_size ;
100
- enum imx_rproc_method method ;
101
- };
102
-
103
77
struct imx_rproc {
104
78
struct device * dev ;
105
79
struct regmap * regmap ;
Original file line number Diff line number Diff line change
1
+ /* SPDX-License-Identifier: GPL-2.0-only */
2
+ /*
3
+ * Copyright (c) 2017 Pengutronix, Oleksij Rempel <[email protected] >
4
+ * Copyright 2021 NXP
5
+ */
6
+
7
+ #ifndef _IMX_RPROC_H
8
+ #define _IMX_RPROC_H
9
+
10
+ /* address translation table */
11
+ struct imx_rproc_att {
12
+ u32 da ; /* device address (From Cortex M4 view)*/
13
+ u32 sa ; /* system bus address */
14
+ u32 size ; /* size of reg range */
15
+ int flags ;
16
+ };
17
+
18
+ /* Remote core start/stop method */
19
+ enum imx_rproc_method {
20
+ IMX_RPROC_NONE ,
21
+ /* Through syscon regmap */
22
+ IMX_RPROC_MMIO ,
23
+ /* Through ARM SMCCC */
24
+ IMX_RPROC_SMC ,
25
+ };
26
+
27
+ struct imx_rproc_dcfg {
28
+ u32 src_reg ;
29
+ u32 src_mask ;
30
+ u32 src_start ;
31
+ u32 src_stop ;
32
+ const struct imx_rproc_att * att ;
33
+ size_t att_size ;
34
+ enum imx_rproc_method method ;
35
+ };
36
+
37
+ #endif /* _IMX_RPROC_H */
You can’t perform that action at this time.
0 commit comments