diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2020-04-29 10:04:57 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-05-01 16:36:28 +0000 |
commit | ad87d1c8b9285cfed47b3ec060be520a467189ff (patch) | |
tree | 0adc68a09791bbd29cd3ffc78de51a3a7805ffa6 /src/soc/intel/cannonlake/graphics.c | |
parent | 2ec1c13ac4a9724095ce71783fd52f70a0b1536d (diff) | |
download | coreboot-ad87d1c8b9285cfed47b3ec060be520a467189ff.tar.xz |
soc/intel/cannonlake: Fix 16-bit read/write PCI_COMMAND register
Change-Id: If7e2c84c39039e0dc6811f247390f856fc634b33
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/40844
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/soc/intel/cannonlake/graphics.c')
-rw-r--r-- | src/soc/intel/cannonlake/graphics.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/soc/intel/cannonlake/graphics.c b/src/soc/intel/cannonlake/graphics.c index c2f99570b7..1ecbb67098 100644 --- a/src/soc/intel/cannonlake/graphics.c +++ b/src/soc/intel/cannonlake/graphics.c @@ -48,9 +48,8 @@ void graphics_soc_init(struct device *dev) } /* IGD needs to Bus Master */ - uint32_t reg32 = pci_read_config32(dev, PCI_COMMAND); - reg32 |= PCI_COMMAND_MASTER | PCI_COMMAND_MEMORY | PCI_COMMAND_IO; - pci_write_config32(dev, PCI_COMMAND, reg32); + pci_or_config16(dev, PCI_COMMAND, PCI_COMMAND_MASTER | PCI_COMMAND_MEMORY | + PCI_COMMAND_IO); /* * GFX PEIM module inside FSP binary is taking care of graphics |