Skip to content

Commit 4ee4e17

Browse files
jiegan0107shashim-quic
authored andcommitted
QCLINUX: memory-dump: add memory dump table for Hamoa
Add memory dump table configuration to enable memory dump function on Hamoa platform. Signed-off-by: Jie Gan <jie.gan@oss.qualcomm.com>
1 parent fcd68b6 commit 4ee4e17

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

drivers/firmware/qcom/memory_dump_dev.c

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,22 @@ static const struct dump_item kaanapali_items[] = {
339339
{ C0_SCANDUMP, 0x380000, "apps-scandump" },
340340
};
341341

342+
static const struct dump_item hamoa_items[] = {
343+
{ C0_CONTEXT, 0x800, "c0-context" },
344+
{ C100_CONTEXT, 0x800, "c100-context" },
345+
{ C200_CONTEXT, 0x800, "c200-context" },
346+
{ C300_CONTEXT, 0x800, "c300-context" },
347+
{ C400_CONTEXT, 0x800, "c400-context" },
348+
{ C500_CONTEXT, 0x800, "c500-context" },
349+
{ C600_CONTEXT, 0x800, "c600-context" },
350+
{ C700_CONTEXT, 0x800, "c700-context" },
351+
{ RPMH, 0xc10000, "rpmh" },
352+
{ PMIC, 0x200000, "pmic" },
353+
{ ETF_SWAO, 0x10000, "etf-swao" },
354+
{ ETR_REG, 0x1000, "etr-reg" },
355+
{ ETFSWAO_REG, 0x1000, "etfswao-reg" },
356+
};
357+
342358
static const struct dump_table lemans_dump_table = {
343359
.items = lemans_items,
344360
.num_of_items = ARRAY_SIZE(lemans_items),
@@ -374,6 +390,13 @@ static const struct dump_table kaanapali_dump_table = {
374390
.imem_size = 0x8,
375391
};
376392

393+
static const struct dump_table hamoa_dump_table = {
394+
.items = hamoa_items,
395+
.num_of_items = ARRAY_SIZE(hamoa_items),
396+
.imem_base = 0x146aa010,
397+
.imem_size = 0x8,
398+
};
399+
377400
static int __init mem_dump_dev_init(void)
378401
{
379402
int ret;
@@ -444,6 +467,17 @@ static int __init mem_dump_dev_init(void)
444467
if (ret)
445468
goto fail;
446469

470+
break;
471+
case 555:
472+
case 615:
473+
case 616:
474+
case 709:
475+
case 710:
476+
ret = platform_device_add_data(mem_dump_pdev,
477+
&hamoa_dump_table, sizeof(hamoa_dump_table));
478+
if (ret)
479+
goto fail;
480+
447481
break;
448482
default:
449483
dev_err(&mem_dump_pdev->dev, "Invalid SoC ID\n");

0 commit comments

Comments
 (0)