summaryrefslogtreecommitdiff
path: root/include/pch.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-02-16 20:24:52 -0700
committerBin Meng <bmeng.cn@gmail.com>2019-02-20 15:27:08 +0800
commit67b0cda76a19c5fc8a0019cfdc4af9006bfad8d5 (patch)
tree170a6e60db542b4d2195b2442249426bc3593b0c /include/pch.h
parent1260f8c0efe126cf952c1bc19d975af34908a79d (diff)
downloadu-boot-67b0cda76a19c5fc8a0019cfdc4af9006bfad8d5.tar.gz
x86: ivybridge: Add a way to get the HDA config setting
Add a way check to whether HD audio is enabled. Use ioctl() to avoid adding too many unusual operations to PCH. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'include/pch.h')
-rw-r--r--include/pch.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/pch.h b/include/pch.h
index b8b62d74ac..046a5fde3a 100644
--- a/include/pch.h
+++ b/include/pch.h
@@ -13,6 +13,9 @@
/* All the supported PCH ioctls */
enum pch_req_t {
+ /* Returns HDA config info if Azalia V1CTL enabled, -ENOENT if not */
+ PCH_REQ_HDA_CONFIG,
+
PCH_REQ_TEST1, /* Test requests for sandbox driver */
PCH_REQ_TEST2,
PCH_REQ_TEST3,