@@ -57,12 +57,15 @@ enum dump_ids {
5757 CPUSS_REG = 0xef ,
5858 TMC_ETF = 0xf0 ,
5959 ETF_SWAO = 0xf1 ,
60+ ETF_SLPI = 0xf3 ,
6061 ETF_LPASS = 0xf4 ,
6162 FCM = 0xee ,
6263 ETR_REG = 0x100 ,
6364 ETF_REG = 0x101 ,
6465 ETFSWAO_REG = 0x102 ,
66+ ETFSLPI_REG = 0x103 ,
6567 ETFLPASS_REG = 0x104 ,
68+ ETR1_REG = 0x105 ,
6669 L2_TLB0 = 0x120 ,
6770 L2_TLB100 = 0x121 ,
6871 L2_TLB200 = 0x122 ,
@@ -86,6 +89,7 @@ enum dump_ids {
8689 OSM_REG = 0x163 ,
8790 PCU_REG = 0x164 ,
8891 FSM_DATA = 0x165 ,
92+ SCANDUMP_SMMU = 0x220 ,
8993};
9094
9195static const struct dump_item lemans_items [] = {
@@ -277,6 +281,35 @@ static const struct dump_item kodiak_items[] = {
277281 { RPMH , 0x2000000 , "rpmh" },
278282};
279283
284+ static const struct dump_item pakala_items [] = {
285+ { C0_CONTEXT , 0x800 , "c0-context" },
286+ { C100_CONTEXT , 0x800 , "c100-context" },
287+ { C200_CONTEXT , 0x800 , "c200-context" },
288+ { C300_CONTEXT , 0x800 , "c300-context" },
289+ { C400_CONTEXT , 0x800 , "c400-context" },
290+ { C500_CONTEXT , 0x800 , "c500-context" },
291+ { C600_CONTEXT , 0x800 , "c600-context" },
292+ { C700_CONTEXT , 0x800 , "c700-context" },
293+ { RPMH , 0x400000 , "rpmh" },
294+ { RPM_SW , 0x28000 , "rpm-sw" },
295+ { PMIC , 0x200000 , "pmic" },
296+ { FCM , 0x8400 , "fcm" },
297+ { MISC_DATA , 0x1000 , "misc-data" },
298+ { ETF_SWAO , 0x10000 , "etf-swao" },
299+ { ETR_REG , 0x1000 , "etr-reg" },
300+ { ETFSWAO_REG , 0x1000 , "etfswao-reg" },
301+ { ETR1_REG , 0x1000 , "etr1-reg" },
302+ { ETF_SLPI , 0x4000 , "etf-slpi" },
303+ { ETFSLPI_REG , 0x1000 , "etfslpi-reg" },
304+ { ETF_LPASS , 0x4000 , "etf-lpass" },
305+ { ETFLPASS_REG , 0x1000 , "etflpass-reg" },
306+ { OSM_REG , 0x400 , "osm-reg" },
307+ { PCU_REG , 0x400 , "pcu-reg" },
308+ { FSM_DATA , 0x400 , "fsm-data" },
309+ { SCANDUMP_SMMU , 0x40000 , "scandump-smmu" },
310+ { C0_SCANDUMP , 0x380000 , "apps-scandump" },
311+ };
312+
280313static const struct dump_table lemans_dump_table = {
281314 .items = lemans_items ,
282315 .num_of_items = ARRAY_SIZE (lemans_items ),
@@ -298,6 +331,13 @@ static const struct dump_table kodiak_dump_table = {
298331 .imem_size = 0x8 ,
299332};
300333
334+ static const struct dump_table pakala_dump_table = {
335+ .items = pakala_items ,
336+ .num_of_items = ARRAY_SIZE (pakala_items ),
337+ .imem_base = 0x14680010 ,
338+ .imem_size = 0x8 ,
339+ };
340+
301341static int __init mem_dump_dev_init (void )
302342{
303343 int ret ;
@@ -345,6 +385,16 @@ static int __init mem_dump_dev_init(void)
345385 if (ret )
346386 goto fail ;
347387
388+ break ;
389+ case 618 :
390+ case 639 :
391+ case 705 :
392+ case 706 :
393+ ret = platform_device_add_data (mem_dump_pdev ,
394+ & pakala_dump_table , sizeof (pakala_dump_table ));
395+ if (ret )
396+ goto fail ;
397+
348398 break ;
349399 default :
350400 dev_err (& mem_dump_pdev -> dev , "Invalid SoC ID\n" );
0 commit comments