Skip to content
Snippets Groups Projects
Commit cd51b55e authored by Gaurav Kohli's avatar Gaurav Kohli
Browse files

ldrpv2: add support for trinket target

Add cache and ram dump parsing support for
trinket.

Change-Id: I8269648a105eb575194c28b82bce6508bba0d0d8
parent e67eab2b
No related branches found
No related tags found
No related merge requests found
...@@ -502,6 +502,20 @@ class BoardSDM710(Board): ...@@ -502,6 +502,20 @@ class BoardSDM710(Board):
self.wdog_addr = 0x146BF658 self.wdog_addr = 0x146BF658
self.imem_file_name = 'OCIMEM.BIN' self.imem_file_name = 'OCIMEM.BIN'
class BoardTrinket(Board):
def __init__(self, socid):
super(BoardTrinket, self).__init__()
self.socid = socid
self.board_num = "trinket"
self.cpu = 'CORTEXA53'
self.ram_start = 0x20000000
self.smem_addr = 0x6000000
self.phys_offset = 0x20000000
self.imem_start = 0x0c100000
self.kaslr_addr = 0x0c1256d0
self.wdog_addr = 0x0c125658
self.imem_file_name = 'OCIMEM.BIN'
class BoardQCS605(Board): class BoardQCS605(Board):
def __init__(self, socid): def __init__(self, socid):
super(BoardQCS605, self).__init__() super(BoardQCS605, self).__init__()
...@@ -873,6 +887,8 @@ boards.append(BoardQCS605(socid=347)) ...@@ -873,6 +887,8 @@ boards.append(BoardQCS605(socid=347))
boards.append(BoardQCS405(socid=352)) boards.append(BoardQCS405(socid=352))
boards.append(BoardQCS403(socid=373)) boards.append(BoardQCS403(socid=373))
boards.append(BoardTrinket(socid=394))
boards.append(BoardPoorwills(socid=334)) boards.append(BoardPoorwills(socid=334))
boards.append(BoardPoorwills(socid=335)) boards.append(BoardPoorwills(socid=335))
......
...@@ -1092,6 +1092,25 @@ lookuptable[("steppe", 0x141, 0x10)] = LLC_SYSTEM_CACHE_KRYO3XX() ...@@ -1092,6 +1092,25 @@ lookuptable[("steppe", 0x141, 0x10)] = LLC_SYSTEM_CACHE_KRYO3XX()
lookuptable[("steppe", 0xc6, 0x10)] = L2_Cache_KRYO4XX_GOLD(numsets=0x200) lookuptable[("steppe", 0xc6, 0x10)] = L2_Cache_KRYO4XX_GOLD(numsets=0x200)
lookuptable[("steppe", 0xc7, 0x10)] = L2_Cache_KRYO4XX_GOLD(numsets=0x200) lookuptable[("steppe", 0xc7, 0x10)] = L2_Cache_KRYO4XX_GOLD(numsets=0x200)
# "trinket"
lookuptable[("trinket", 0x80, 0x14)] = L1_DCache_KRYO2XX_SILVER()
lookuptable[("trinket", 0x81, 0x14)] = L1_DCache_KRYO2XX_SILVER()
lookuptable[("trinket", 0x82, 0x14)] = L1_DCache_KRYO2XX_SILVER()
lookuptable[("trinket", 0x83, 0x14)] = L1_DCache_KRYO2XX_SILVER()
lookuptable[("trinket", 0x84, 0x14)] = L1_DCache_KRYO2XX_GOLD()
lookuptable[("trinket", 0x85, 0x14)] = L1_DCache_KRYO2XX_GOLD()
lookuptable[("trinket", 0x86, 0x14)] = L1_DCache_KRYO2XX_GOLD()
lookuptable[("trinket", 0x87, 0x14)] = L1_DCache_KRYO2XX_GOLD()
lookuptable[("trinket", 0x60, 0x14)] = L1_ICache_KYRO2XX_SILVER()
lookuptable[("trinket", 0x61, 0x14)] = L1_ICache_KYRO2XX_SILVER()
lookuptable[("trinket", 0x62, 0x14)] = L1_ICache_KYRO2XX_SILVER()
lookuptable[("trinket", 0x63, 0x14)] = L1_ICache_KYRO2XX_SILVER()
lookuptable[("trinket", 0x64, 0x14)] = L1_ICache_KRYO2XX_GOLD()
lookuptable[("trinket", 0x65, 0x14)] = L1_ICache_KRYO2XX_GOLD()
lookuptable[("trinket", 0x66, 0x14)] = L1_ICache_KRYO2XX_GOLD()
lookuptable[("trinket", 0x67, 0x14)] = L1_ICache_KRYO2XX_GOLD()
# "sdm660" # "sdm660"
lookuptable[("660", 0x80, 0x14)] = L1_DCache_KRYO2XX_SILVER() lookuptable[("660", 0x80, 0x14)] = L1_DCache_KRYO2XX_SILVER()
lookuptable[("660", 0x81, 0x14)] = L1_DCache_KRYO2XX_SILVER() lookuptable[("660", 0x81, 0x14)] = L1_DCache_KRYO2XX_SILVER()
......
...@@ -775,6 +775,16 @@ lookuptable[("qcs605", 0x125, 0x14)] = L2_TLB_KRYO3XX_SILVER() ...@@ -775,6 +775,16 @@ lookuptable[("qcs605", 0x125, 0x14)] = L2_TLB_KRYO3XX_SILVER()
lookuptable[("qcs605", 0x126, 0x14)] = L2_TLB_KRYO3XX_GOLD() lookuptable[("qcs605", 0x126, 0x14)] = L2_TLB_KRYO3XX_GOLD()
lookuptable[("qcs605", 0x127, 0x14)] = L2_TLB_KRYO3XX_GOLD() lookuptable[("qcs605", 0x127, 0x14)] = L2_TLB_KRYO3XX_GOLD()
# "trinket"
lookuptable[("trinket", 0x20, 0x14)] = L1_TLB_A53()
lookuptable[("trinket", 0x21, 0x14)] = L1_TLB_A53()
lookuptable[("trinket", 0x22, 0x14)] = L1_TLB_A53()
lookuptable[("trinket", 0x23, 0x14)] = L1_TLB_A53()
lookuptable[("trinket", 0x24, 0x14)] = L1_TLB_KRYO2XX_GOLD()
lookuptable[("trinket", 0x25, 0x14)] = L1_TLB_KRYO2XX_GOLD()
lookuptable[("trinket", 0x26, 0x14)] = L1_TLB_KRYO2XX_GOLD()
lookuptable[("trinket", 0x27, 0x14)] = L1_TLB_KRYO2XX_GOLD()
# "msm8998" # "msm8998"
lookuptable[("8998", 0x20, 0x14)] = L1_TLB_A53() lookuptable[("8998", 0x20, 0x14)] = L1_TLB_A53()
lookuptable[("8998", 0x21, 0x14)] = L1_TLB_A53() lookuptable[("8998", 0x21, 0x14)] = L1_TLB_A53()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment