From fb915d01e840101e37290a60f6fac559c22ed1e0 Mon Sep 17 00:00:00 2001
From: Jeevan Shriram <jshriram@codeaurora.org>
Date: Mon, 7 Jan 2019 19:20:00 -0800
Subject: [PATCH] lrdpv2: Add support to extract logs for sdxprairie target

Add support for detecting sdxprairie target and extract/parse ramdumps
for the same.

Change-Id: Icd056606e85740c98192c8ba61dc8fa4d05305a9
---
 linux-ramdump-parser-v2/boards.py | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/linux-ramdump-parser-v2/boards.py b/linux-ramdump-parser-v2/boards.py
index 83aef51..c6ad7d8 100644
--- a/linux-ramdump-parser-v2/boards.py
+++ b/linux-ramdump-parser-v2/boards.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2014-2018, The Linux Foundation. All rights reserved.
+# Copyright (c) 2014-2019, The Linux Foundation. All rights reserved.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License version 2 and
@@ -655,6 +655,19 @@ class BoardPoorwills(Board):
         self.wdog_addr =  0x14680658
         self.imem_file_name = 'OCIMEM.BIN'
 
+class BoardPrairie(Board):
+    def __init__(self, socid):
+        super(BoardPrairie, self).__init__()
+        self.socid = socid
+        self.board_num = "sdxprairie"
+        self.cpu = 'CORTEXA7'
+        self.ram_start = 0x80000000
+        self.smem_addr = 0xFE40000
+        self.phys_offset = 0x80000000
+        self.imem_start = 0x14680000
+        self.wdog_addr =  0x14680658
+        self.imem_file_name = 'OCIMEM.BIN'
+
 boards = []
 
 boards.append(Board9640(socid=234))
@@ -892,6 +905,9 @@ boards.append(BoardTrinket(socid=394))
 boards.append(BoardPoorwills(socid=334))
 boards.append(BoardPoorwills(socid=335))
 
+boards.append(BoardPrairie(socid=357))
+boards.append(BoardPrairie(socid=368))
+
 boards.append(Board439(socid=353))
 boards.append(Board439(socid=363))
 
-- 
GitLab