blob: 8fee54b63ea3655c8b59a0775ed67ce75300cd22 [file] [log] [blame]
Martin Rothd75800c2014-05-12 21:56:27 -06001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2007-2009 coresystems GmbH
5 * Copyright (C) 2013 Sage Electronic Engineering, LLC.
6 *
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.
10 *
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.
Martin Rothd75800c2014-05-12 21:56:27 -060015 */
16
17#include <arch/acpi.h>
Ben Gardnerfa6014a2015-12-08 21:20:25 -060018#include <soc/acpi.h>
Martin Rothd75800c2014-05-12 21:56:27 -060019
20void acpi_create_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt)
21{
22 acpi_header_t *header = &(fadt->header);
23
24 acpi_fill_in_fadt(fadt,facs,dsdt);
25
26 /* Platform specific customizations go here */
27
Jonathan Neuschäfere1de6482018-10-10 14:22:48 +020028 header->checksum = acpi_checksum((void *) fadt, sizeof(acpi_fadt_t));
Martin Rothd75800c2014-05-12 21:56:27 -060029}