From c1301dd2d23532d4d824499a6632fa2d08fb23e5 Mon Sep 17 00:00:00 2001 From: Angel Pons Date: Thu, 18 Mar 2021 20:35:19 +0100 Subject: {lynxpoint/broadwell}: Set Azalia HDCFG.BCLD bit Lock down several HD Audio registers by setting the HDCFG.BCLD bit. Tested on Asrock B85M Pro4, the GCAP register becomes read-only. Change-Id: Id6208289a68baaedc4aad51cc0c5355f996a1b00 Signed-off-by: Angel Pons Reviewed-on: https://review.coreboot.org/c/coreboot/+/51645 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans --- src/soc/intel/broadwell/pch/hda.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/soc/intel/broadwell') diff --git a/src/soc/intel/broadwell/pch/hda.c b/src/soc/intel/broadwell/pch/hda.c index c6ae590bc4d8..ba7d342fe5cd 100644 --- a/src/soc/intel/broadwell/pch/hda.c +++ b/src/soc/intel/broadwell/pch/hda.c @@ -129,12 +129,19 @@ static void hda_enable(struct device *dev) } } +static void hda_final(struct device *dev) +{ + /* Set HDCFG.BCLD */ + pci_or_config16(dev, 0x40, 1 << 1); +} + static struct device_operations hda_ops = { .read_resources = &pci_dev_read_resources, .set_resources = &pci_dev_set_resources, .enable_resources = &pci_dev_enable_resources, .init = &hda_init, .enable = &hda_enable, + .final = &hda_final, .ops_pci = &pci_dev_ops_pci, }; -- cgit v1.2.3