This is a resend of the previous patch, now using the 
intel_ich_gpio_raise function.

I have now created a separate function, instead of hooking this code 
onto another board enable that also raises gpio21 (but with a different 
ICH).

Allan, i know you have given an Ack already, but this is now based on 
more general infrastructure. Can you give this patch a whirl too?

You will have to apply this patch here first though:
http://patchwork.coreboot.org/patch/467/raw/

Thanks,

Luc Verhaegen.
>From 34014b9884d43c48cf757b50fc64d6c4dcc3560f Mon Sep 17 00:00:00 2001
From: Luc Verhaegen <[email protected]>
Date: Sat, 24 Oct 2009 00:59:00 +0200
Subject: [PATCH] Board enable for Asus P4B266-LM.

Board shipped in the Sony Vaio PCV-RX650.

Raises GPIO21 on intel ICH2.

Signed-off-by: Luc Verhaegen <[email protected]>
---
 board_enable.c |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/board_enable.c b/board_enable.c
index 2332209..03930f4 100644
--- a/board_enable.c
+++ b/board_enable.c
@@ -665,6 +665,25 @@ static void intel_ich_gpio_raise(struct pci_dev *dev, 
unsigned int gpio)
 }
 
 /**
+ * Suited for Asus P4B266LM (Sony Vaio PCV-RX650): socket478 + 845D + ICH2.
+ */
+static int board_asus_p4b266_lm(const char *name)
+{
+       struct pci_dev *dev;
+
+       dev = pci_dev_find(0x8086, 0x2440);     /* Intel ICH2 ISA Bridge */
+       if (!dev) {
+               fprintf(stderr, "\nERROR: Intel ICH2 ISA Bridge not found.\n");
+               return -1;
+       }
+
+       intel_ich_gpio_raise(dev, 21);
+
+       return 0;
+}
+
+
+/**
  * Suited for ASUS P4B266: socket478 + intel 845D + ICH2.
  */
 static int board_asus_p4b266(const char *name)
@@ -1126,6 +1145,7 @@ struct board_pciid_enable board_pciid_enables[] = {
        {0x1106, 0x3189, 0x1043, 0x807F,  0x1106, 0x3177, 0x1043, 0x808C, NULL, 
        NULL,          "ASUS",        "A7V8X",              board_asus_a7v8x},
        {0x1106, 0x3177, 0x1043, 0x80A1,  0x1106, 0x3205, 0x1043, 0x8118, NULL, 
        NULL,          "ASUS",        "A7V8X-MX SE",        
board_asus_a7v8x_mx},
        {0x8086, 0x1a30, 0x1043, 0x8070,  0x8086, 0x244b, 0x1043, 0x8028, NULL, 
        NULL,          "ASUS",        "P4B266",             board_asus_p4b266},
+       {0x8086, 0x1A30, 0x1043, 0x8025,  0x8086, 0x244B, 0x104D, 0x80F0, NULL, 
        NULL,          "ASUS",        "P4B266-LM",          
board_asus_p4b266_lm},
        {0x8086, 0x2570, 0x1043, 0x80F2,  0x105A, 0x3373, 0x1043, 0x80F5, NULL, 
        NULL,          "ASUS",        "P4P800-E Deluxe",    board_asus_p4p800},
        {0x10B9, 0x1541,      0,      0,  0x10B9, 0x1533,      0,      0, 
"asus",       "p5a",         "ASUS",        "P5A",                
board_asus_p5a},
        {0x10DE, 0x0030, 0x1043, 0x818a,  0x8086, 0x100E, 0x1043, 0x80EE, NULL, 
        NULL,          "ASUS",        "P5ND2-SLI Deluxe",   
board_asus_p5nd2_sli},
-- 
1.6.0.2

_______________________________________________
flashrom mailing list
[email protected]
http://www.flashrom.org/mailman/listinfo/flashrom

Reply via email to