@@ -87,6 +87,18 @@ static const struct spm_reg_data spm_reg_8974_8084_cpu = {
87
87
.start_index [PM_SLEEP_MODE_SPC ] = 3 ,
88
88
};
89
89
90
+ /* SPM register data for 8226 */
91
+ static const struct spm_reg_data spm_reg_8226_cpu = {
92
+ .reg_offset = spm_reg_offset_v2_1 ,
93
+ .spm_cfg = 0x0 ,
94
+ .spm_dly = 0x3C102800 ,
95
+ .seq = { 0x60 , 0x03 , 0x60 , 0x0B , 0x0F , 0x20 , 0x10 , 0x80 , 0x30 , 0x90 ,
96
+ 0x5B , 0x60 , 0x03 , 0x60 , 0x3B , 0x76 , 0x76 , 0x0B , 0x94 , 0x5B ,
97
+ 0x80 , 0x10 , 0x26 , 0x30 , 0x0F },
98
+ .start_index [PM_SLEEP_MODE_STBY ] = 0 ,
99
+ .start_index [PM_SLEEP_MODE_SPC ] = 5 ,
100
+ };
101
+
90
102
static const u8 spm_reg_offset_v1_1 [SPM_REG_NR ] = {
91
103
[SPM_REG_CFG ] = 0x08 ,
92
104
[SPM_REG_SPM_CTL ] = 0x20 ,
@@ -259,6 +271,8 @@ static struct spm_driver_data *spm_get_drv(struct platform_device *pdev,
259
271
}
260
272
261
273
static const struct of_device_id spm_match_table [] = {
274
+ { .compatible = "qcom,msm8226-saw2-v2.1-cpu" ,
275
+ .data = & spm_reg_8226_cpu },
262
276
{ .compatible = "qcom,msm8974-saw2-v2.1-cpu" ,
263
277
.data = & spm_reg_8974_8084_cpu },
264
278
{ .compatible = "qcom,apq8084-saw2-v2.1-cpu" ,
0 commit comments