On Fri, Mar 14, 2008 at 04:12:58PM +0100, Carl-Daniel Hailfinger wrote:
/*
- See ie. page 375 of "Intel ICH7 External Design Specification"
- See ie. page 375 of "Intel I/O Controller Hub 7 (ICH7) Family Datasheet"
- */
static int enable_flash_ich(struct pci_dev *dev, const char *name, int bios_cntl) @@ -153,6 +154,10 @@ */ old = pci_read_byte(dev, bios_cntl);
- printf("BIOS Lock Enable: %sabled, ", (old & (1 << 1)) ? "en" : "dis");
- printf("BIOS Write Enable: %sabled, ", (old & (1 << 1)) ? "en" : "dis");
Shouldn't this be 'old & (1 << 0)'? Write enable is bit 0, lock enable is bit 1.
Uwe.