Commit 3ac76af6 authored by Marc Jones's avatar Marc Jones Committed by Ronald G. Minnich
Browse files

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: default avatarMarc Jones <marc.jones@amd.com>
Acked-by: default avatarPeter Stuge <peter@stuge.se>

Tested on the pcengines alix1c and works fine.
Acked-by: default avatarRonald G. Minnich <rminnich@gmail.com>
parent 10e091bd
......@@ -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");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment