[PATCH] Board: Add Abit AN-M2.

Luc Verhaegen libv at quoth.site
Thu Dec 3 00:27:02 CET 2009


---
 board_enable.c |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/board_enable.c b/board_enable.c
index 44b1a67..2773473 100644
--- a/board_enable.c
+++ b/board_enable.c
@@ -434,6 +434,24 @@ static void nvidia_mcp_gpio_raise(struct pci_dev *dev, uint8_t offset)
 }
 
 /**
+ * Suited for the Abit AN-M2: nVidia MCP67.
+ */
+static int board_abit_an_m2(const char *name)
+{
+	struct pci_dev *dev;
+
+	dev = pci_dev_find(0x10DE, 0x0542);	/* nVidia MCP67 SMBus */
+	if (!dev) {
+		fprintf(stderr, "\nERROR: nVidia MCP67 SMBUS not found.\n");
+		return -1;
+	}
+
+	nvidia_mcp_gpio_raise(dev, 0x02);
+
+	return 0;
+}
+
+/**
  * Suited for the Gigabyte GA-K8N-SLI: CK804 southbridge.
  */
 static int board_ga_k8n_sli(const char *name)
@@ -1137,6 +1155,7 @@ static int board_asus_a7v600x(const char *name)
 /* Please keep this list alphabetically ordered by vendor/board name. */
 struct board_pciid_enable board_pciid_enables[] = {
 	/* first pci-id set [4],          second pci-id set [4],          coreboot id [2],             vendor name    board name            flash enable */
+	{0x10DE, 0x0547, 0x147B, 0x1C2F,  0x10DE, 0x0548, 0x147B, 0x1C2F, NULL,         NULL,          "Abit",        "AN-M2",              board_abit_an_m2},
 	{0x8086, 0x2926, 0x147b, 0x1084,  0x11ab, 0x4364, 0x147b, 0x1084, NULL,         NULL,          "Abit",        "IP35",               intel_ich_gpio16_raise},
 	{0x8086, 0x1130,      0,      0,  0x105a, 0x0d30, 0x105a, 0x4d33, "acorp",      "6a815epd",    "Acorp",       "6A815EPD",           board_acorp_6a815epd},
 	{0x8086, 0x24D4, 0x1849, 0x24D0,  0x8086, 0x24D5, 0x1849, 0x9739, NULL,         NULL,          "ASRock",      "P4i65GV",            intel_ich_gpio23_raise},
-- 
1.6.0.2


--0F1p//8PRICkK4MW--




More information about the flashrom mailing list