15
15
#include <dt-bindings/power/meson-s4-power.h>
16
16
#include <dt-bindings/power/amlogic,t7-pwrc.h>
17
17
#include <dt-bindings/power/amlogic,a4-pwrc.h>
18
+ #include <dt-bindings/power/amlogic,a5-pwrc.h>
18
19
#include <linux/arm-smccc.h>
19
20
#include <linux/firmware/meson/meson_sm.h>
20
21
#include <linux/module.h>
@@ -155,6 +156,22 @@ static struct meson_secure_pwrc_domain_desc a4_pwrc_domains[] = {
155
156
SEC_PD (A4_AO_IR , GENPD_FLAG_ALWAYS_ON ),
156
157
};
157
158
159
+ static struct meson_secure_pwrc_domain_desc a5_pwrc_domains [] = {
160
+ SEC_PD (A5_NNA , 0 ),
161
+ SEC_PD (A5_AUDIO , 0 ),
162
+ SEC_PD (A5_SDIOA , 0 ),
163
+ SEC_PD (A5_EMMC , 0 ),
164
+ SEC_PD (A5_USB_COMB , 0 ),
165
+ SEC_PD (A5_ETH , 0 ),
166
+ SEC_PD (A5_RSA , 0 ),
167
+ SEC_PD (A5_AUDIO_PDM , 0 ),
168
+ /* DMC is for DDR PHY ana/dig and DMC, and should be always on */
169
+ SEC_PD (A5_DMC , GENPD_FLAG_ALWAYS_ON ),
170
+ /* WRAP is secure_top, a lot of modules are included, and should be always on */
171
+ SEC_PD (A5_SYS_WRAP , GENPD_FLAG_ALWAYS_ON ),
172
+ SEC_PD (A5_DSPA , 0 ),
173
+ };
174
+
158
175
static struct meson_secure_pwrc_domain_desc c3_pwrc_domains [] = {
159
176
SEC_PD (C3_NNA , 0 ),
160
177
SEC_PD (C3_AUDIO , 0 ),
@@ -335,6 +352,11 @@ static struct meson_secure_pwrc_domain_data amlogic_secure_a4_pwrc_data = {
335
352
.count = ARRAY_SIZE (a4_pwrc_domains ),
336
353
};
337
354
355
+ static struct meson_secure_pwrc_domain_data amlogic_secure_a5_pwrc_data = {
356
+ .domains = a5_pwrc_domains ,
357
+ .count = ARRAY_SIZE (a5_pwrc_domains ),
358
+ };
359
+
338
360
static struct meson_secure_pwrc_domain_data amlogic_secure_c3_pwrc_data = {
339
361
.domains = c3_pwrc_domains ,
340
362
.count = ARRAY_SIZE (c3_pwrc_domains ),
@@ -359,6 +381,10 @@ static const struct of_device_id meson_secure_pwrc_match_table[] = {
359
381
.compatible = "amlogic,a4-pwrc" ,
360
382
.data = & amlogic_secure_a4_pwrc_data ,
361
383
},
384
+ {
385
+ .compatible = "amlogic,a5-pwrc" ,
386
+ .data = & amlogic_secure_a5_pwrc_data ,
387
+ },
362
388
{
363
389
.compatible = "amlogic,c3-pwrc" ,
364
390
.data = & amlogic_secure_c3_pwrc_data ,
0 commit comments