2 * This file is part of the coreboot project.
4 * Copyright (C) 2012 Google Inc.
5 * Copyright (C) 2015 Intel Corp.
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 2 of the License.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
17 #include <arch/acpi.h>
18 #include <arch/acpigen.h>
19 #include <arch/ioapic.h>
20 #include <arch/smp/mpspec.h>
22 #include <console/console.h>
24 #include <cpu/x86/msr.h>
25 #include <device/device.h>
26 #include <device/pci.h>
27 #include <device/pci_ids.h>
29 #include <soc/iomap.h>
36 void acpi_create_gnvs(global_nvs_t
*gnvs
)
40 /* Enable USB ports in S3 */
44 /* Disable USB ports in S5 */
50 if (board_id() == BOARD_BCRD2
)
51 gnvs
->dev
.lpss_en
[LPSS_NVS_I2C2
] = 0;
54 unsigned long acpi_fill_madt(unsigned long current
)
57 current
= acpi_create_madt_lapics(current
);
60 current
+= acpi_create_madt_ioapic((acpi_madt_ioapic_t
*) current
,
63 current
= acpi_madt_irq_overrides(current
);