Author: stefanct Date: Tue Feb 7 22:29:48 2012 New Revision: 1489 URL: http://flashrom.org/trac/flashrom/changeset/1489
Log: Add support for RDC R6030 chipset
Tested on Bifferboard.
Signed-off-by: Rudolf Marek r.marek@assembler.cz Acked-by: Stefan Tauner stefan.tauner@student.tuwien.ac.at
Modified: trunk/chipset_enable.c trunk/print.c
Modified: trunk/chipset_enable.c ============================================================================== --- trunk/chipset_enable.c Fri Feb 3 23:32:09 2012 (r1488) +++ trunk/chipset_enable.c Tue Feb 7 22:29:48 2012 (r1489) @@ -54,6 +54,32 @@ return 0; }
+static int enable_flash_rdc_r8610(struct pci_dev *dev, const char *name) +{ + uint8_t tmp; + + /* enable ROMCS for writes */ + tmp = pci_read_byte(dev, 0x43); + tmp |= 0x80; + pci_write_byte(dev, 0x43, tmp); + + /* read the bootstrapping register */ + tmp = pci_read_byte(dev, 0x40) & 0x3; + switch (tmp) { + case 3: + internal_buses_supported = BUS_FWH; + break; + case 2: + internal_buses_supported = BUS_LPC; + break; + default: + internal_buses_supported = BUS_PARALLEL; + break; + } + + return 0; +} + static int enable_flash_sis85c496(struct pci_dev *dev, const char *name) { uint8_t tmp; @@ -1235,6 +1261,7 @@ {0x1106, 0x8409, OK, "VIA", "VX855/VX875", enable_flash_vt823x}, {0x1166, 0x0200, OK, "Broadcom", "OSB4", enable_flash_osb4}, {0x1166, 0x0205, OK, "Broadcom", "HT-1000", enable_flash_ht1000}, + {0x17f3, 0x6030, OK, "RDC", "R8610/R3210", enable_flash_rdc_r8610}, {0x8086, 0x122e, OK, "Intel", "PIIX", enable_flash_piix4}, {0x8086, 0x1234, NT, "Intel", "MPIIX", enable_flash_piix4}, {0x8086, 0x1c44, OK, "Intel", "Z68", enable_flash_pch6},
Modified: trunk/print.c ============================================================================== --- trunk/print.c Fri Feb 3 23:32:09 2012 (r1488) +++ trunk/print.c Tue Feb 7 22:29:48 2012 (r1489) @@ -692,6 +692,7 @@ B("ASUS", "Z8NA-D6C", 1, "http://www.asus.com/Server_Workstation/Server_Motherboards/Z8NAD6C/", NULL), B("ASUS", "Z8PE-D12", 1, "http://www.asus.com/Server_Workstation/Server_Motherboards/Z8PED12/", NULL), B("BCOM", "WinNET100", 1, "http://www.coreboot.org/BCOM_WINNET100", "Used in the IGEL-316 thin client."), + B("Bifferos", "Bifferboard", 1, "http://bifferos.co.uk/", NULL), B("Biostar", "N68S3+", 1, NULL, NULL), B("Biostar", "M6TBA", 0, "ftp://ftp.biostar-usa.com/manuals/M6TBA/", "No public report found. Owned by Uwe Hermann uwe@hermann-uwe.de. May work now."), B("Biostar", "M7NCD Pro", 1, "http://www.biostar.com.tw/app/en/mb/content.php?S_ID=260", NULL),