diff --git a/src/include/pci_ids.h b/src/include/pci_ids.h index 4050a79ae8..dd74bba5c4 100644 --- a/src/include/pci_ids.h +++ b/src/include/pci_ids.h @@ -336,6 +336,7 @@ #define PCI_DEVICE_ID_SI_601 0x0601 #define PCI_DEVICE_ID_SI_620 0x0620 #define PCI_DEVICE_ID_SI_630 0x0630 +#define PCI_DEBICE_ID_SI_730 0x0730 #define PCI_DEVICE_ID_SI_5107 0x5107 #define PCI_DEVICE_ID_SI_5300 0x5300 #define PCI_DEVICE_ID_SI_5511 0x5511 diff --git a/src/lib/subr.c b/src/lib/subr.c index a8b1a14bd4..638b7ece01 100644 --- a/src/lib/subr.c +++ b/src/lib/subr.c @@ -207,7 +207,7 @@ void intel_zero_irq_settings(void) void intel_check_irq_routing_table(void) { -#if (defined(L440BX) || defined (SIS630)) +#ifdef HAVE_PIRQ_TABLE const u8 *addr; const struct irq_routing_table *rt; int i; @@ -248,14 +248,14 @@ void intel_check_irq_routing_table(void) "checksum error in irq routing table\n", __FILE__, __LINE__, __FUNCTION__); } -#endif /* #if defined(L440BX) */ +#endif /* #ifdef HAVE_PIRQ_TABLE */ } #define RTABLE_DEST 0xf0000 void intel_copy_irq_routing_table(void) { -#ifdef SIS630 +#ifdef HAVE_PIRQ_TABLE memcpy((char *) RTABLE_DEST, &intel_irq_routing_table, intel_irq_routing_table.size); #endif } diff --git a/src/mainboard/leadtek/winfast6300/Config b/src/mainboard/leadtek/winfast6300/Config index 0d90a745e3..8c63079630 100644 --- a/src/mainboard/leadtek/winfast6300/Config +++ b/src/mainboard/leadtek/winfast6300/Config @@ -3,6 +3,7 @@ superio sis/950 option ENABLE_FIXED_AND_VARIABLE_MTRRS option FINAL_MAINBOARD_FIXUP +option HAVE_PIRQ_TABLE object mainboard.o object irq_tables.o keyboard pc80 diff --git a/src/northsouthbridge/sis/630/ipl.S b/src/northsouthbridge/sis/630/ipl.S index b5bf189bdb..81c13ab781 100644 --- a/src/northsouthbridge/sis/630/ipl.S +++ b/src/northsouthbridge/sis/630/ipl.S @@ -110,7 +110,7 @@ check_row_column: cmpb $0x08, %cl # Col number too small, unsupported. jb no_sdram cmpb $0x0b, %cl # Col number too big, unsupported. - jl no_sdram + jl no_sdram #endif /* SAFTY_CHECK */ #if 1 @@ -130,9 +130,9 @@ check_row_column: xorb %ch, %ch addw %cx, %si # sdram_type_bank[column + row * 4] - movb -52(%si), %cl # sdram_type_bank[column + row * 4 - 52] + movb -52(%si), %cl # sdram_type_bank[column + row * 4 - 52] #endif - + #ifdef SIZE_ALL movb %ah, %bh # Restore DIMM slot number from AH to BH #endif /* SIZE_ALL */ @@ -230,7 +230,7 @@ sis630ipl_start: movb $0x85, %al # Turn into Normal Mode call doc_reset - + read_next_page: movw $0x1000, %di # point %di to CDSN Control area @@ -238,14 +238,14 @@ flash_command: movb $0x03, 0x04(%di) # start command cycle movb $0x00, (%si) # issue flash command Read00 call doc_cycle_end - + movw %bp, %bx # %bp is current page number flash_address: shll $0x08, %ebx - movb $0x03, %cl # this one is DANGEROUS but I am + movb $0x03, %cl # this one is DANGEROUS but I am # sure the upper 3 bytes == 0x00 - + movb $0x05, 0x04(%di) # start address cycle 0: movb %bl, (%si) # write address to CDSNIO @@ -263,7 +263,7 @@ doc_delay: 0: movb 0x20(%di), %al # read DOC NOP retisger loop 0b # four times - + testb $0x80, 0x04(%di) # is flash ready ? jz wait_for_flash_ready @@ -289,7 +289,7 @@ write_lpc_register: movl $LPC_BRIDGE_BASE_ADDR, %edx jmp write_common -write_pci_register: +write_pci_register: /* Input: AH - register number. AL - register value. */ movl $NORTH_BRIDGE_BASE_ADDR, %edx @@ -318,7 +318,7 @@ read_spd: movw $0x0312, %ax # Start, R/W byte Data CALL_BP(sis_set_smbus) -wait_for_smbus_read: +wait_for_smbus_read: movb $0x80, %dl # Read SMBus status inb %dx, %al