mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-10 01:34:12 +00:00
m1n1.adt: Decode apcie tunables
Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
8ca5d671ad
commit
6d0979e71e
1 changed files with 19 additions and 0 deletions
|
@ -191,6 +191,20 @@ SpeakerThieleSmall = Struct(
|
|||
"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": {
|
||||
"*": {
|
||||
|
@ -283,6 +297,11 @@ DEV_PROPERTIES = {
|
|||
"speaker-thiele-small": SpeakerThieleSmall,
|
||||
},
|
||||
},
|
||||
"apcie*": {
|
||||
"*": {
|
||||
"apcie-*-tunables": GreedyRange(TunableLocal),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
def parse_prop(node, path, node_name, name, v, is_template=False):
|
||||
|
|
Loading…
Reference in a new issue