Nvidia boards: acpi_tables.c: Remove intermediate variable in ACPI interrupt routing initialization
Change-Id: I6cb4ad5ea5ad40284f8e88ff440f2605d3b83359 Signed-off-by: Jonathan A. Kollasch <jakllsch@kollasch.net> Reviewed-on: http://review.coreboot.org/3959 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins)
This commit is contained in:
parent
4f9bf7e2fb
commit
8ad6e78778
|
@ -65,17 +65,9 @@ unsigned long acpi_fill_madt(unsigned long current)
|
|||
/* Initialize interrupt mapping if mptable.c didn't. */
|
||||
#if (!CONFIG_GENERATE_MP_TABLE)
|
||||
#error untested config
|
||||
{
|
||||
u32 dword;
|
||||
dword = 0x0120d218;
|
||||
pci_write_config32(dev, 0x7c, dword);
|
||||
|
||||
dword = 0x12008a00;
|
||||
pci_write_config32(dev, 0x80, dword);
|
||||
|
||||
dword = 0x0000007d;
|
||||
pci_write_config32(dev, 0x84, dword);
|
||||
}
|
||||
pci_write_config32(dev, 0x7c, 0x0120d218);
|
||||
pci_write_config32(dev, 0x80, 0x12008a00);
|
||||
pci_write_config32(dev, 0x84, 0x0000007d);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -44,17 +44,9 @@ unsigned long acpi_fill_madt(unsigned long current)
|
|||
apic_addr, 0);
|
||||
/* Initialize interrupt mapping if mptable.c didn't. */
|
||||
#if (!CONFIG_GENERATE_MP_TABLE)
|
||||
{
|
||||
u32 dword;
|
||||
dword = 0x0120d218;
|
||||
pci_write_config32(dev, 0x7c, dword);
|
||||
|
||||
dword = 0x12008a00;
|
||||
pci_write_config32(dev, 0x80, dword);
|
||||
|
||||
dword = 0x0000007d;
|
||||
pci_write_config32(dev, 0x84, dword);
|
||||
}
|
||||
pci_write_config32(dev, 0x7c, 0x0120d218);
|
||||
pci_write_config32(dev, 0x80, 0x12008a00);
|
||||
pci_write_config32(dev, 0x84, 0x0000007d);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -44,17 +44,9 @@ unsigned long acpi_fill_madt(unsigned long current)
|
|||
apic_addr, 0);
|
||||
/* Initialize interrupt mapping if mptable.c didn't. */
|
||||
#if (!CONFIG_GENERATE_MP_TABLE)
|
||||
{
|
||||
u32 dword;
|
||||
dword = 0x0120d218;
|
||||
pci_write_config32(dev, 0x7c, dword);
|
||||
|
||||
dword = 0x12008a00;
|
||||
pci_write_config32(dev, 0x80, dword);
|
||||
|
||||
dword = 0x0000007d;
|
||||
pci_write_config32(dev, 0x84, dword);
|
||||
}
|
||||
pci_write_config32(dev, 0x7c, 0x0120d218);
|
||||
pci_write_config32(dev, 0x80, 0x12008a00);
|
||||
pci_write_config32(dev, 0x84, 0x0000007d);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -44,17 +44,9 @@ unsigned long acpi_fill_madt(unsigned long current)
|
|||
apic_addr, 0);
|
||||
/* Initialize interrupt mapping if mptable.c didn't. */
|
||||
#if (!CONFIG_GENERATE_MP_TABLE)
|
||||
{
|
||||
u32 dword;
|
||||
dword = 0x0120d218;
|
||||
pci_write_config32(dev, 0x7c, dword);
|
||||
|
||||
dword = 0x12008a00;
|
||||
pci_write_config32(dev, 0x80, dword);
|
||||
|
||||
dword = 0x00080d7d;
|
||||
pci_write_config32(dev, 0x84, dword);
|
||||
}
|
||||
pci_write_config32(dev, 0x7c, 0x0120d218);
|
||||
pci_write_config32(dev, 0x80, 0x12008a00);
|
||||
pci_write_config32(dev, 0x84, 0x00080d7d);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -81,17 +73,9 @@ unsigned long acpi_fill_madt(unsigned long current)
|
|||
apic_addr, 0x20);
|
||||
/* Initialize interrupt mapping if mptable.c didn't. */
|
||||
#if (!CONFIG_GENERATE_MP_TABLE)
|
||||
{
|
||||
u32 dword;
|
||||
dword = 0x0000d218; // Why does the factory BIOS have 0?
|
||||
pci_write_config32(dev, 0x7c, dword);
|
||||
|
||||
dword = 0x00000000;
|
||||
pci_write_config32(dev, 0x80, dword);
|
||||
|
||||
dword = 0x00000d00; // Same here.
|
||||
pci_write_config32(dev, 0x84, dword);
|
||||
}
|
||||
pci_write_config32(dev, 0x7c, 0x0000d218); // Why does the factory BIOS have 0?
|
||||
pci_write_config32(dev, 0x80, 0x00000000);
|
||||
pci_write_config32(dev, 0x84, 0x00000d00); // Same here.
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue