blob: 5af6056b493d9b62ffbf0642d0322507326182df [file] [log] [blame]
York Yang9c6c7912016-03-09 11:19:51 -08001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2007-2009 coresystems GmbH
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15
16#include <soc/acpi.h>
17
18void acpi_create_fadt(acpi_fadt_t *fadt, acpi_facs_t *facs, void *dsdt)
19{
20 acpi_header_t *header = &(fadt->header);
21
22 acpi_fill_in_fadt(fadt, facs, dsdt);
23
24 /* Platform specific customizations go here */
25
Jonathan Neuschäfere1de6482018-10-10 14:22:48 +020026 header->checksum = acpi_checksum((void *) fadt, sizeof(acpi_fadt_t));
York Yang9c6c7912016-03-09 11:19:51 -080027}