util: Add hda-decoder
commitb205f4e53ec30487ea1c219366e496664a3c20aa
authorNicholas Sudsgaard <devel+coreboot@nsudsgaard.com>
Wed, 14 Feb 2024 09:10:57 +0000 (14 18:10 +0900)
committerMichael Niewöhner <foss@mniewoehner.de>
Mon, 15 Jul 2024 07:22:32 +0000 (15 07:22 +0000)
treee5dcc7bc41a60691791911dac42538e95fb35a78
parentb0fa6683de2e97c017cf73eaa409350a2f1709e3
util: Add hda-decoder

This tool helps take off the burden of manually decoding default
configuration registers. Using decoded values can make code more
self-documenting compared to shrouding it with magic numbers.

This is also written as a module which allows easy integration with
other tools written in Go (e.g. autoport).

Change-Id: Ib4fb652e178517b2b7aceaac8be005c5b2d3b03e
Signed-off-by: Nicholas Sudsgaard <devel+coreboot@nsudsgaard.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/80470
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
util/hda-decoder/.gitignore [new file with mode: 0644]
util/hda-decoder/Makefile [new file with mode: 0644]
util/hda-decoder/decoder/lib.go [new file with mode: 0644]
util/hda-decoder/decoder/lib_test.go [new file with mode: 0644]
util/hda-decoder/description.md [new file with mode: 0644]
util/hda-decoder/go.mod [new file with mode: 0644]
util/hda-decoder/main.go [new file with mode: 0644]