summaryrefslogtreecommitdiffstats
path: root/chipset_enable.c
diff options
context:
space:
mode:
authorMarc Jones <marc.jones@amd.com>2008-01-26 07:35:47 +0000
committerRonald G. Minnich <rminnich@gmail.com>2008-01-26 07:35:47 +0000
commit3ac76af6f0623779667d3d3d147e35a6be1c8b05 (patch)
tree2d6a6d69b88e3304c6988e6dbe6a8735ca31668f /chipset_enable.c
parent10e091bd30db44c5984be4d8699bef537d90ccc7 (diff)
downloadast2050-flashrom-3ac76af6f0623779667d3d3d147e35a6be1c8b05.zip
ast2050-flashrom-3ac76af6f0623779667d3d3d147e35a6be1c8b05.tar.gz
Correctly disable the ROM area Write Protect bit in the Geode LX
Corresponding to flashrom svn r188 and coreboot v2 svn r3078. Signed-off-by: Marc Jones <marc.jones@amd.com> Acked-by: Peter Stuge <peter@stuge.se> Tested on the pcengines alix1c and works fine. Acked-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'chipset_enable.c')
-rw-r--r--chipset_enable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chipset_enable.c b/chipset_enable.c
index 7eecf09..4cbb941 100644
--- a/chipset_enable.c
+++ b/chipset_enable.c
@@ -256,7 +256,7 @@ static int enable_flash_cs5536(struct pci_dev *dev, const char *name)
close(fd_msr);
if (buf[7] != 0x22) {
printf("Enabling Geode MSR to write to flash.\n");
- buf[7] = 0x22;
+ buf[7] &= 0xFB;
fd_msr = open("/dev/cpu/0/msr", O_WRONLY);
if (!fd_msr) {
perror("open msr");
OpenPOWER on IntegriCloud