[coreboot] [PATCH] flashrom: Prepare for ICH7/ICH8 SPI support

Uwe Hermann uwe at hermann-uwe.de
Fri Mar 14 17:50:37 CET 2008


On Fri, Mar 14, 2008 at 04:12:58PM +0100, Carl-Daniel Hailfinger wrote:
>  /*
> - * See ie. page 375 of "Intel ICH7 External Design Specification"
> - * http://download.intel.com/design/chipsets/datashts/30701302.pdf
> + * See ie. page 375 of "Intel I/O Controller Hub 7 (ICH7) Family Datasheet"
> + * http://download.intel.com/design/chipsets/datashts/30701303.pdf
>   */
>  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.
-- 
http://www.hermann-uwe.de  | http://www.holsham-traders.de
http://www.crazy-hacks.org | http://www.unmaintained-free-software.org




More information about the coreboot mailing list