Changeset 3659 for trunk/util
- Timestamp:
- 10/15/08 19:50:29 (3 months ago)
- Files:
-
- 1 modified
-
trunk/util/flashrom/chipset_enable.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/util/flashrom/chipset_enable.c
r3648 r3659 567 567 printf("tried to set 0x%x to 0x%x on %s failed (WARNING ONLY)\n", 0x40, new, name); 568 568 return -1; 569 } 570 571 return 0; 572 } 573 574 static int enable_flash_sb600(struct pci_dev *dev, const char *name) 575 { 576 uint32_t old, new; 577 uint8_t reg; 578 579 /* Clear ROM Protect 0-3 */ 580 for (reg = 0x50; reg < 0x60; reg+=4) { 581 old = pci_read_long(dev, reg); 582 new = old & 0xFFFFFFFC; 583 if (new != old) { 584 pci_write_byte(dev, reg, new); 585 if (pci_read_long(dev, reg) != new) { 586 printf("tried to set 0x%x to 0x%x on %s failed (WARNING ONLY)\n", 0x50, new, name); 587 } 588 } 569 589 } 570 590 … … 745 765 {0x1022, 0x2080, "AMD CS5536", enable_flash_cs5536}, 746 766 {0x1022, 0x7468, "AMD8111", enable_flash_amd8111}, 767 {0x1002, 0x438D, "ATI(AMD) SB600", enable_flash_sb600}, 747 768 {0x10B9, 0x1533, "ALi M1533", enable_flash_ali_m1533}, 748 769 {0x10de, 0x0050, "NVIDIA CK804", enable_flash_ck804}, /* LPC */
