Skip to content

Commit

Permalink
m1n1.adt: Decode apcie tunables
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 21, 2023
1 parent 8ca5d67 commit 6d0979e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions proxyclient/m1n1/adt.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,20 @@
"checksum" / Hex(Int16ul),
)

TunableGlobal = Struct(
"reg_idx" / Hex(Int32ul),
"offset" / Hex(Int32ul),
"mask" / Hex(Int32ul),
"value" / Hex(Int32ul),
)

TunableLocal = Struct(
"offset" / Hex(Int32ul),
"size" / Hex(Int32ul),
"mask" / Hex(Int64ul),
"value" / Hex(Int64ul),
)

DEV_PROPERTIES = {
"pmgr": {
"*": {
Expand Down Expand Up @@ -283,6 +297,11 @@
"speaker-thiele-small": SpeakerThieleSmall,
},
},
"apcie*": {
"*": {
"apcie-*-tunables": GreedyRange(TunableLocal),
}
}
}

def parse_prop(node, path, node_name, name, v, is_template=False):
Expand Down

0 comments on commit 6d0979e

Please sign in to comment.