diff options
author | Luc Verhaegen <libv@skynet.be> | 2007-05-20 16:16:13 +0000 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2007-05-20 16:16:13 +0000 |
commit | 6b14175ead16134d3451b7436f446a71dc2c0d91 (patch) | |
tree | bc57cad99caefc21d3b559079a70952315d59e96 /chipset_enable.c | |
parent | a7e0548cea45ec60616936c536efbb2a34605093 (diff) | |
download | flashrom-6b14175ead16134d3451b7436f446a71dc2c0d91.tar.gz flashrom-6b14175ead16134d3451b7436f446a71dc2c0d91.tar.bz2 flashrom-6b14175ead16134d3451b7436f446a71dc2c0d91.zip |
Add support for ASUS P5A (Socket 7, ALi based)
* Add support for the ALi M1533 to chipset_enable.c
* Add some SMBus poking needed for the ASUS P5A, to board_enable.c
Since PCI subsystem IDs are worthless with this board, people will
have to name the board directly.
Corresponding to flashrom svn r109 and coreboot v2 svn r2677.
Signed-off-by: Luc Verhaegen <libv@skynet.be>
Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Diffstat (limited to 'chipset_enable.c')
-rw-r--r-- | chipset_enable.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/chipset_enable.c b/chipset_enable.c index d903f218..bef55b14 100644 --- a/chipset_enable.c +++ b/chipset_enable.c @@ -18,6 +18,19 @@ #include "flash.h" #include "debug.h" +static int enable_flash_ali_m1533(struct pci_dev *dev, char *name) +{ + uint8_t tmp; + + /* ROM Write enable, 0xFFFC0000-0xFFFDFFFF and + 0xFFFE0000-0xFFFFFFFF ROM select enable. */ + tmp = pci_read_byte(dev, 0x47); + tmp |= 0x46; + pci_write_byte(dev, 0x47, tmp); + + return 0; +} + static int enable_flash_sis630(struct pci_dev *dev, char *name) { char b; @@ -410,6 +423,7 @@ static FLASH_ENABLE enables[] = { {0x100b, 0x0510, "SC1100", enable_flash_sc1100}, {0x1039, 0x0008, "SIS5595", enable_flash_sis5595}, {0x1022, 0x7468, "AMD8111", enable_flash_amd8111}, + {0x10B9, 0x1533, "ALi M1533", enable_flash_ali_m1533}, /* this fallthrough looks broken. */ {0x10de, 0x0050, "NVIDIA CK804", enable_flash_ck804}, /* LPC */ {0x10de, 0x0051, "NVIDIA CK804", enable_flash_ck804}, /* Pro */ |