Remove address from GPLv2 headers
[coreboot.git] / src / mainboard / google / samus / fadt.c
blob237954cf3ce49efbd61226e574ba48b54c7115c6
1 /*
2 * This file is part of the coreboot project.
4 * Copyright (C) 2007-2009 coresystems GmbH
5 * Copyright (C) 2014 Google Inc.
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.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc.
21 #include <string.h>
22 #include <soc/acpi.h>
24 void acpi_create_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt)
26 acpi_header_t *header = &(fadt->header);
28 memset((void *) fadt, 0, sizeof(acpi_fadt_t));
29 memcpy(header->signature, "FACP", 4);
30 header->length = sizeof(acpi_fadt_t);
31 header->revision = 5;
32 memcpy(header->oem_id, OEM_ID, 6);
33 memcpy(header->oem_table_id, ACPI_TABLE_CREATOR, 8);
34 memcpy(header->asl_compiler_id, ASLC, 4);
35 header->asl_compiler_revision = 1;
37 fadt->firmware_ctrl = (unsigned long) facs;
38 fadt->dsdt = (unsigned long) dsdt;
39 fadt->model = 1;
40 fadt->preferred_pm_profile = PM_MOBILE;
42 fadt->x_firmware_ctl_l = (unsigned long)facs;
43 fadt->x_firmware_ctl_h = 0;
44 fadt->x_dsdt_l = (unsigned long)dsdt;
45 fadt->x_dsdt_h = 0;
47 acpi_fill_in_fadt(fadt);
49 header->checksum =
50 acpi_checksum((void *) fadt, header->length);