x86: ivybridge: Add a way to get the HDA config setting
authorSimon Glass <sjg@chromium.org>
Sun, 17 Feb 2019 03:24:52 +0000 (20:24 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Wed, 20 Feb 2019 07:27:08 +0000 (15:27 +0800)
commit67b0cda76a19c5fc8a0019cfdc4af9006bfad8d5
tree170a6e60db542b4d2195b2442249426bc3593b0c
parent1260f8c0efe126cf952c1bc19d975af34908a79d
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>
arch/x86/cpu/ivybridge/bd82x6x.c
include/pch.h