Skip to content

Commit

Permalink
fw.dcp.ipc: Define rt_bw_config_t properly
Browse files Browse the repository at this point in the history
Signed-off-by: Hector Martin <marcan@marcan.st>
  • Loading branch information
marcan committed Aug 30, 2021
1 parent 4df7812 commit 2199502
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
7 changes: 6 additions & 1 deletion proxyclient/m1n1/fw/dcp/ipc.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,12 @@ def methods(cls):
return ret

rt_bw_config_t = Struct(
"data" / HexDump(Bytes(0x3c)),
"unk1" / UnkBytes(8),
"reg1" / Int64ul,
"reg2" / Int64ul,
"unk2" / UnkBytes(4),
"bit" / Int32ul,
"padding" / UnkBytes(0x1c),
)

IOUserClient = Struct(
Expand Down
11 changes: 5 additions & 6 deletions proxyclient/m1n1/fw/dcp/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,11 @@ def will_power_off_signal(self):

def rt_bandwidth_setup_ap(self, config):
print("rt_bandwidth_setup_ap(...)")
config.val = {"data":unhex("""
6C 43 6C 6F 63 6B 00 44 14 80 73 3B 02 00 00 00
00 C0 C3 3B 02 00 00 00 00 00 00 00 02 00 00 00
00 00 00 00 90 26 FB 43 FF FF FF FF 04 00 00 00
00 00 00 00 65 04 00 00 00 00 00 00
""")}
config.val = {
"reg1": 0x23b738014, # reg[5] in disp0/dispext0, plus 0x14 - part of pmgr
"reg2": 0x23bc3c000, # reg[6] in disp0/dispext0 - part of pmp/pmgr
"bit": 2,
}
## UnifiedPipeline2 methods

def match_pmu_service(self):
Expand Down

0 comments on commit 2199502

Please sign in to comment.