From 3fc732bcf06189b7a8742b9ffefb7a764678e346 Mon Sep 17 00:00:00 2001 From: Aparna Das <adas@codeaurora.org> Date: Fri, 23 May 2014 17:32:22 -0700 Subject: [PATCH] linux-ramdump-parser-v2: accomodate for change in memory map Add support to detect socinfo id correctly for different memory maps of 8916. Change-Id: Ic2d83288539e58bcaae1541f57d633a4ba66f169 --- linux-ramdump-parser-v2/boards.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/linux-ramdump-parser-v2/boards.py b/linux-ramdump-parser-v2/boards.py index 279c0a6..9578205 100644 --- a/linux-ramdump-parser-v2/boards.py +++ b/linux-ramdump-parser-v2/boards.py @@ -153,14 +153,14 @@ class Board9635(Board): self.imem_file_name = 'OCIMEM.BIN' class Board8916(Board): - def __init__(self, socid): + def __init__(self, socid, smem_addr): super(Board8916, self).__init__() self.socid = socid self.board_num = 8916 self.cpu = 'CORTEXA7' self.ram_start = 0x80000000 #self.ram_start = 0x0 - self.smem_addr = 0xe200000 + self.smem_addr = smem_addr self.phys_offset = 0x80000000 self.imem_start = 0x8600000 self.wdog_addr = 0x8605658 @@ -180,7 +180,8 @@ class Board8994(Board): self.imem_file_name = 'OCIMEM.BIN' boards = [] -boards.append(Board8916(socid=206)) +boards.append(Board8916(socid=206, smem_addr=0xe200000)) +boards.append(Board8916(socid=206, smem_addr=0x6300000)) boards.append(Board8974(socid=126)) boards.append(Board8974(socid=184)) boards.append(Board8974(socid=185)) -- GitLab