From 3a3539cfd8587553b834db59eaa6bea07e412894 Mon Sep 17 00:00:00 2001
From: Xiaogang Cui <xiaogang@codeaurora.org>
Date: Thu, 16 Oct 2014 10:07:02 -0700
Subject: [PATCH] linux-ramdump-parser-v2: Add support for msm8909

Add support for detecting 8909 target and parsing the ramdumps.

Change-Id: I76a8b9366797a83d0a84fbb4894261488a94ed26
---
 linux-ramdump-parser-v2/boards.py | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/linux-ramdump-parser-v2/boards.py b/linux-ramdump-parser-v2/boards.py
index 31d53ab..bfedb6b 100755
--- a/linux-ramdump-parser-v2/boards.py
+++ b/linux-ramdump-parser-v2/boards.py
@@ -205,17 +205,37 @@ class Board8994(Board):
         self.wdog_addr = 0xfe87f658
         self.imem_file_name = 'OCIMEM.BIN'
 
+class Board8909(Board):
+    def __init__(self, socid):
+        super(Board8909, self).__init__()
+        self.socid = socid
+        self.board_num = 8909
+        self.cpu = 'CORTEXA7'
+        self.ram_start = 0x80000000
+        self.smem_addr = 0x7d00000
+        self.phys_offset = 0x80000000
+        self.imem_start = 0x8600000
+        self.wdog_addr = 0x8600658
+        self.imem_file_name = 'OCIMEM.BIN'
+
 boards = []
 boards.append(Board8916(socid=206, smem_addr=0xe200000))
 boards.append(Board8916(socid=206, smem_addr=0x6300000))
+
 boards.append(Board8939(socid=239, smem_addr=0xe200000))
 boards.append(Board8939(socid=241, smem_addr=0xe200000))
 boards.append(Board8939(socid=239, smem_addr=0x6300000))
 boards.append(Board8939(socid=241, smem_addr=0x6300000))
+
 boards.append(Board8936(socid=233))
 boards.append(Board8936(socid=240))
 boards.append(Board8936(socid=242))
 boards.append(Board8936(socid=243))
+
+boards.append(Board8909(socid=245))
+boards.append(Board8909(socid=258))
+boards.append(Board8909(socid=265))
+
 boards.append(Board8974(socid=126))
 boards.append(Board8974(socid=184))
 boards.append(Board8974(socid=185))
-- 
GitLab