aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2018-01-04 04:20:18 -0500
committerLee Jones <lee.jones@linaro.org>2018-01-08 06:03:35 -0500
commit0f89ffefa4e122e7e9bc1c2d716c6052b4601b76 (patch)
tree92ec694aa2c63050a4227b74bc3c7e8355bf476c
parent0c384fc8620f3cfd886ba969200b79a3563a92df (diff)
mfd: lpc_ich: Do not touch SPI-NOR write protection bit on Apollo Lake
Just to be on the safe side, don't touch the bit. If write access to the flash chip is needed, the BIOS needs to enable it explicitly. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r--drivers/mfd/lpc_ich.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/mfd/lpc_ich.c b/drivers/mfd/lpc_ich.c
index cf1120abbf52..53dc1a43472c 100644
--- a/drivers/mfd/lpc_ich.c
+++ b/drivers/mfd/lpc_ich.c
@@ -1143,11 +1143,6 @@ static int lpc_ich_init_spi(struct pci_dev *dev)
1143 res->end = res->start + SPIBASE_APL_SZ - 1; 1143 res->end = res->start + SPIBASE_APL_SZ - 1;
1144 1144
1145 pci_bus_read_config_dword(bus, spi, BCR, &bcr); 1145 pci_bus_read_config_dword(bus, spi, BCR, &bcr);
1146 if (!(bcr & BCR_WPD)) {
1147 bcr |= BCR_WPD;
1148 pci_bus_write_config_dword(bus, spi, BCR, bcr);
1149 pci_bus_read_config_dword(bus, spi, BCR, &bcr);
1150 }
1151 info->writeable = !!(bcr & BCR_WPD); 1146 info->writeable = !!(bcr & BCR_WPD);
1152 } 1147 }
1153 1148