Author: hailfinger Date: 2007-11-12 12:14:10 +0100 (Mon, 12 Nov 2007) New Revision: 2955
Modified: trunk/LinuxBIOSv2/src/mainboard/gigabyte/m57sli/Config.lb trunk/LinuxBIOSv2/src/superio/ite/it8716f/it8716f.h trunk/LinuxBIOSv2/src/superio/ite/it8716f/superio.c Log: Fix the remaining issues with GA-M57SLI Super I/O GPIO configuration.
With this patch, flashing the parallel EEPROM on board revisions 1.x finally works. Flashing the serial EEPROM of board revisions 2.x is just one patch away.
Torsten Duwe says: Flash erase on my board was failing reliably. Now it works!
Andreas B. Mundt says: For the first time I was able to write with flashrom and LB. $flashrom -Vv --write linuxbios.rom [...] Vendor ID: GIGABYTE, part ID: m57sli Found chipset "NVIDIA MCP55", enabling flash write... OK. [...] SST49LF040B found at physical address 0xfff80000. Flash part is SST49LF040B (512 KB). LinuxBIOS last image size (not ROM size) is 4096 bytes. Manufacturer: GIGABYTE Mainboard ID: m57sli This firmware image matches this motherboard. Programming page: 0007 at address: 0x00070000 Verifying flash... VERIFIED.
Signed-off-by: Carl-Daniel Hailfinger c-d.hailfinger.devel.2006@gmx.net Acked-by: Torsten Duwe duwe@lst.de Tested-by: Andreas B. Mundt andi.mundt@web.de Tested-by: Torsten Duwe duwe@lst.de
Modified: trunk/LinuxBIOSv2/src/mainboard/gigabyte/m57sli/Config.lb =================================================================== --- trunk/LinuxBIOSv2/src/mainboard/gigabyte/m57sli/Config.lb 2007-11-12 02:33:31 UTC (rev 2954) +++ trunk/LinuxBIOSv2/src/mainboard/gigabyte/m57sli/Config.lb 2007-11-12 11:14:10 UTC (rev 2955) @@ -282,17 +282,17 @@ # pin 13 is GP35 irq 0x27 = 0x20 # pin 70 is not GP46 - #0x28 = 0x0 + #irq 0x28 = 0x0 # pin 6,3,128,127,126 is GP63,64,65,66,67 irq 0x29 = 0x81 # Enable FAN_CTL/FAN_TAC set to 5 (pin 21,23), enable FAN_CTL/FAN_TAC set to 4 (pin 20,22), pin 48 is PCIRST5#, pin91 is PCIRSTIN#, VIN7 is internal voltage divider for VCCH5V, pin 95 is ATXPG, VIN3 is internal voltage divider for VCC5V - #0x2c = 0x1f + #irq 0x2c = 0x1f # Simple I/O base io 0x62 = 0x800 # Serial Flash I/O (SPI only) #io 0x64 = 0x820 # watch dog force timeout (parallel flash only) - #0x71 = 0x1 + #irq 0x71 = 0x1 # No WDT interrupt irq 0x72 = 0x0 # GPIO pin set 1 disable internal pullup @@ -300,23 +300,23 @@ # GPIO pin set 5 enable internal pullup irq 0xbc = 0x01 # SIO pin set 1 alternate function - #0xc0 = 0x0 + #irq 0xc0 = 0x0 # SIO pin set 2 mixed function irq 0xc1 = 0x43 # SIO pin set 3 mixed function irq 0xc2 = 0x20 # SIO pin set 4 alternate function - #0xc3 = 0x0 + #irq 0xc3 = 0x0 # SIO pin set 1 input mode - #0xc8 = 0x0 + #irq 0xc8 = 0x0 # SIO pin set 2 mixed input/output mode irq 0xc9 = 0x0 # SIO pin set 4 input mode - #0xcb = 0x0 + #irq 0xcb = 0x0 # Generate SMI# on EC IRQ - #0xf0 = 0x10 + #irq 0xf0 = 0x10 # SMI# level trigger - #0xf1 = 0x40 + #irq 0xf1 = 0x40 # HWMON alert beep pin location irq 0xf6 = 0x28 end
Modified: trunk/LinuxBIOSv2/src/superio/ite/it8716f/it8716f.h =================================================================== --- trunk/LinuxBIOSv2/src/superio/ite/it8716f/it8716f.h 2007-11-12 02:33:31 UTC (rev 2954) +++ trunk/LinuxBIOSv2/src/superio/ite/it8716f/it8716f.h 2007-11-12 11:14:10 UTC (rev 2955) @@ -28,6 +28,7 @@ #define IT8716F_EC 0x04 /* Environment controller */ #define IT8716F_KBCK 0x05 /* Keyboard */ #define IT8716F_KBCM 0x06 /* Mouse */ +#define IT8716F_GPIO 0x07 /* GPIO */ #define IT8716F_MIDI 0x08 /* MIDI port */ #define IT8716F_GAME 0x09 /* GAME port */ #define IT8716F_IR 0x0a /* Consumer IR */
Modified: trunk/LinuxBIOSv2/src/superio/ite/it8716f/superio.c =================================================================== --- trunk/LinuxBIOSv2/src/superio/ite/it8716f/superio.c 2007-11-12 02:33:31 UTC (rev 2954) +++ trunk/LinuxBIOSv2/src/superio/ite/it8716f/superio.c 2007-11-12 11:14:10 UTC (rev 2955) @@ -152,7 +152,7 @@ {&ops, IT8716F_KBCK, PNP_IO0 | PNP_IO1 | PNP_IRQ0, {0x7ff, 0}, {0x7ff, 0x4},}, {&ops, IT8716F_KBCM, PNP_IRQ0,}, - // No 7 { 0,}, + {&ops, IT8716F_GPIO,}, {&ops, IT8716F_MIDI, PNP_IO0 | PNP_IRQ0, {0x7fe, 0x4},}, {&ops, IT8716F_GAME, PNP_IO0, {0x7ff, 0},}, {&ops, IT8716F_IR,},