File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ static struct sdw_amd_ctx *sdw_amd_probe_controller(struct sdw_amd_res *res)
121
121
122
122
sdw_pdata [index ].instance = index ;
123
123
sdw_pdata [index ].acp_sdw_lock = res -> acp_lock ;
124
+ sdw_pdata [index ].acp_rev = res -> acp_rev ;
124
125
pdevinfo [index ].name = "amd_sdw_manager" ;
125
126
pdevinfo [index ].id = index ;
126
127
pdevinfo [index ].parent = res -> parent ;
Original file line number Diff line number Diff line change @@ -910,6 +910,7 @@ static int amd_sdw_manager_probe(struct platform_device *pdev)
910
910
amd_manager -> mmio = amd_manager -> acp_mmio +
911
911
(amd_manager -> instance * SDW_MANAGER_REG_OFFSET );
912
912
amd_manager -> acp_sdw_lock = pdata -> acp_sdw_lock ;
913
+ amd_manager -> acp_rev = pdata -> acp_rev ;
913
914
amd_manager -> cols_index = sdw_find_col_index (AMD_SDW_DEFAULT_COLUMNS );
914
915
amd_manager -> rows_index = sdw_find_row_index (AMD_SDW_DEFAULT_ROWS );
915
916
amd_manager -> dev = dev ;
Original file line number Diff line number Diff line change 30
30
31
31
struct acp_sdw_pdata {
32
32
u16 instance ;
33
+ u32 acp_rev ;
33
34
/* mutex to protect acp common register access */
34
35
struct mutex * acp_sdw_lock ;
35
36
};
@@ -66,6 +67,7 @@ struct sdw_amd_dai_runtime {
66
67
* @instance: SoundWire manager instance
67
68
* @quirks: SoundWire manager quirks
68
69
* @wake_en_mask: wake enable mask per SoundWire manager
70
+ * @acp_rev: acp pci device revision id
69
71
* @clk_stopped: flag set to true when clock is stopped
70
72
* @power_mode_mask: flag interprets amd SoundWire manager power mode
71
73
* @dai_runtime_array: dai runtime array
@@ -94,6 +96,7 @@ struct amd_sdw_manager {
94
96
u32 quirks ;
95
97
u32 wake_en_mask ;
96
98
u32 power_mode_mask ;
99
+ u32 acp_rev ;
97
100
bool clk_stopped ;
98
101
99
102
struct sdw_amd_dai_runtime * * dai_runtime_array ;
@@ -134,6 +137,7 @@ struct sdw_amd_ctx {
134
137
* struct sdw_amd_res - Soundwire AMD global resource structure,
135
138
* typically populated by the DSP driver/Legacy driver
136
139
*
140
+ * @acp_rev: acp pci device revision id
137
141
* @addr: acp pci device resource start address
138
142
* @reg_range: ACP register range
139
143
* @link_mask: bit-wise mask listing links selected by the DSP driver/
@@ -146,6 +150,7 @@ struct sdw_amd_ctx {
146
150
* @acp_lock: mutex protecting acp common registers access
147
151
*/
148
152
struct sdw_amd_res {
153
+ u32 acp_rev ;
149
154
u32 addr ;
150
155
u32 reg_range ;
151
156
u32 link_mask ;
You can’t perform that action at this time.
0 commit comments