Angel Pons | 182dbde | 2020-04-02 23:49:05 +0200 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | /* This file is part of the coreboot project. */ |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 3 | |
| 4 | |
| 5 | /* |
| 6 | * ACPI - create the Fixed ACPI Description Tables (FADT) |
| 7 | */ |
| 8 | |
| 9 | |
| 10 | #include <string.h> |
| 11 | #include <console/console.h> |
| 12 | #include <arch/acpi.h> |
| 13 | #include <arch/io.h> |
| 14 | #include <device/device.h> |
Elyes HAOUAS | 26071aa | 2019-02-15 08:21:33 +0100 | [diff] [blame] | 15 | #include <version.h> |
| 16 | |
Kerry She | feed329 | 2011-08-18 18:03:44 +0800 | [diff] [blame] | 17 | #include "SBPLATFORM.h" |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 18 | |
Marc Jones | 7c9ef4f | 2012-05-10 11:02:32 -0600 | [diff] [blame] | 19 | #ifndef FADT_BOOT_ARCH |
| 20 | #if LEGACY_FREE |
Marc Jones | 7c9ef4f | 2012-05-10 11:02:32 -0600 | [diff] [blame] | 21 | #define FADT_BOOT_ARCH ACPI_FADT_LEGACY_FREE |
Marc Jones | ba3711c | 2012-05-12 09:56:45 -0600 | [diff] [blame] | 22 | #else |
| 23 | #define FADT_BOOT_ARCH (ACPI_FADT_LEGACY_DEVICES | ACPI_FADT_8042) |
Marc Jones | 7c9ef4f | 2012-05-10 11:02:32 -0600 | [diff] [blame] | 24 | #endif |
| 25 | #endif |
Marc Jones | b547c4f | 2012-05-09 15:34:49 -0600 | [diff] [blame] | 26 | |
Martin Roth | 9aa4389 | 2012-05-25 12:23:32 -0600 | [diff] [blame] | 27 | #ifndef FADT_PM_PROFILE |
| 28 | #define FADT_PM_PROFILE PM_UNSPECIFIED |
| 29 | #endif |
| 30 | |
Marc Jones | b547c4f | 2012-05-09 15:34:49 -0600 | [diff] [blame] | 31 | /* |
| 32 | * Reference section 5.2.9 Fixed ACPI Description Table (FADT) |
| 33 | * in the ACPI 3.0b specification. |
| 34 | */ |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 35 | void acpi_create_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt) |
| 36 | { |
Kerry She | feed329 | 2011-08-18 18:03:44 +0800 | [diff] [blame] | 37 | u16 val = 0; |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 38 | acpi_header_t *header = &(fadt->header); |
| 39 | |
Kerry She | feed329 | 2011-08-18 18:03:44 +0800 | [diff] [blame] | 40 | printk(BIOS_DEBUG, "ACPI_BLK_BASE: 0x%04x\n", ACPI_BLK_BASE); |
Marc Jones | b547c4f | 2012-05-09 15:34:49 -0600 | [diff] [blame] | 41 | |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 42 | /* Prepare the header */ |
| 43 | memset((void *)fadt, 0, sizeof(acpi_fadt_t)); |
| 44 | memcpy(header->signature, "FACP", 4); |
Marc Jones | b547c4f | 2012-05-09 15:34:49 -0600 | [diff] [blame] | 45 | header->length = sizeof(acpi_fadt_t); |
Marc Jones | f9ea7ed | 2018-08-22 18:59:26 -0600 | [diff] [blame] | 46 | header->revision = get_acpi_table_revision(FADT); |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 47 | memcpy(header->oem_id, OEM_ID, 6); |
Stefan Reinauer | fa66eae | 2012-09-06 12:13:43 -0700 | [diff] [blame] | 48 | memcpy(header->oem_table_id, ACPI_TABLE_CREATOR, 8); |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 49 | memcpy(header->asl_compiler_id, ASLC, 4); |
Elyes HAOUAS | 26071aa | 2019-02-15 08:21:33 +0100 | [diff] [blame] | 50 | header->asl_compiler_revision = asl_revision; |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 51 | |
Stefan Reinauer | 12bce3f | 2015-06-18 01:17:38 -0700 | [diff] [blame] | 52 | if ((uintptr_t)facs > 0xffffffff) |
| 53 | printk(BIOS_DEBUG, "ACPI: FACS lives above 4G\n"); |
| 54 | else |
| 55 | fadt->firmware_ctrl = (uintptr_t)facs; |
| 56 | |
| 57 | if ((uintptr_t)dsdt > 0xffffffff) |
| 58 | printk(BIOS_DEBUG, "ACPI: DSDT lives above 4G\n"); |
| 59 | else |
| 60 | fadt->dsdt = (uintptr_t)dsdt; |
| 61 | |
Elyes HAOUAS | 0d4de2a | 2019-02-28 13:04:29 +0100 | [diff] [blame] | 62 | fadt->reserved = 0; /* reserved, should be 0 ACPI 3.0 */ |
Martin Roth | 9aa4389 | 2012-05-25 12:23:32 -0600 | [diff] [blame] | 63 | fadt->preferred_pm_profile = FADT_PM_PROFILE; |
Martin Roth | 0cd338e | 2016-07-29 14:07:30 -0600 | [diff] [blame] | 64 | fadt->sci_int = 9; /* HUDSON 1 - IRQ 09 - ACPI SCI */ |
Marc Jones | b547c4f | 2012-05-09 15:34:49 -0600 | [diff] [blame] | 65 | fadt->smi_cmd = 0; /* disable system management mode */ |
| 66 | fadt->acpi_enable = 0; /* unused if SMI_CMD = 0 */ |
| 67 | fadt->acpi_disable = 0; /* unused if SMI_CMD = 0 */ |
| 68 | fadt->s4bios_req = 0; /* unused if SMI_CMD = 0 */ |
| 69 | fadt->pstate_cnt = 0; /* unused if SMI_CMD = 0 */ |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 70 | |
Kerry She | feed329 | 2011-08-18 18:03:44 +0800 | [diff] [blame] | 71 | val = PM1_EVT_BLK_ADDRESS; |
| 72 | WritePMIO(SB_PMIOA_REG60, AccWidthUint16, &val); |
| 73 | val = PM1_CNT_BLK_ADDRESS; |
| 74 | WritePMIO(SB_PMIOA_REG62, AccWidthUint16, &val); |
| 75 | val = PM1_TMR_BLK_ADDRESS; |
| 76 | WritePMIO(SB_PMIOA_REG64, AccWidthUint16, &val); |
| 77 | val = GPE0_BLK_ADDRESS; |
| 78 | WritePMIO(SB_PMIOA_REG68, AccWidthUint16, &val); |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 79 | |
Timothy Pearson | 033bb4b | 2015-02-10 22:21:39 -0600 | [diff] [blame] | 80 | /* CpuControl is in \_PR.CP00, 6 bytes */ |
Kerry She | feed329 | 2011-08-18 18:03:44 +0800 | [diff] [blame] | 81 | val = CPU_CNT_BLK_ADDRESS; |
| 82 | WritePMIO(SB_PMIOA_REG66, AccWidthUint16, &val); |
| 83 | val = 0; |
| 84 | WritePMIO(SB_PMIOA_REG6A, AccWidthUint16, &val); |
| 85 | val = ACPI_PMA_CNT_BLK_ADDRESS; |
Martin Roth | 9aa4389 | 2012-05-25 12:23:32 -0600 | [diff] [blame] | 86 | WritePMIO(SB_PMIOA_REG6E, AccWidthUint16, &val); |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 87 | |
Kerry She | feed329 | 2011-08-18 18:03:44 +0800 | [diff] [blame] | 88 | /* AcpiDecodeEnable, When set, SB uses the contents of the |
| 89 | * PM registers at index 60-6B to decode ACPI I/O address. |
| 90 | * AcpiSmiEn & SmiCmdEn*/ |
| 91 | val = BIT0 | BIT1 | BIT2 | BIT4; |
| 92 | WritePMIO(SB_PMIOA_REG74, AccWidthUint16, &val); |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 93 | |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 94 | /* RTC_En_En, TMR_En_En, GBL_EN_EN */ |
Kerry She | feed329 | 2011-08-18 18:03:44 +0800 | [diff] [blame] | 95 | outl(0x1, PM1_CNT_BLK_ADDRESS); /* set SCI_EN */ |
| 96 | fadt->pm1a_evt_blk = PM1_EVT_BLK_ADDRESS; |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 97 | fadt->pm1b_evt_blk = 0x0000; |
Kerry She | feed329 | 2011-08-18 18:03:44 +0800 | [diff] [blame] | 98 | fadt->pm1a_cnt_blk = PM1_CNT_BLK_ADDRESS; |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 99 | fadt->pm1b_cnt_blk = 0x0000; |
Kerry She | feed329 | 2011-08-18 18:03:44 +0800 | [diff] [blame] | 100 | fadt->pm2_cnt_blk = ACPI_PMA_CNT_BLK_ADDRESS; |
| 101 | fadt->pm_tmr_blk = PM1_TMR_BLK_ADDRESS; |
| 102 | fadt->gpe0_blk = GPE0_BLK_ADDRESS; |
Marc Jones | b547c4f | 2012-05-09 15:34:49 -0600 | [diff] [blame] | 103 | fadt->gpe1_blk = 0; /* No gpe1 block in hudson1 */ |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 104 | |
Martin Roth | 9aa4389 | 2012-05-25 12:23:32 -0600 | [diff] [blame] | 105 | fadt->pm1_evt_len = 4; /* 32 bits */ |
| 106 | fadt->pm1_cnt_len = 2; /* 16 bits */ |
| 107 | fadt->pm2_cnt_len = 1; /* 8 bits */ |
| 108 | fadt->pm_tmr_len = 4; /* 32 bits */ |
| 109 | fadt->gpe0_blk_len = 8; /* 64 bits */ |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 110 | fadt->gpe1_blk_len = 0; |
| 111 | fadt->gpe1_base = 0; |
| 112 | |
Martin Roth | 9aa4389 | 2012-05-25 12:23:32 -0600 | [diff] [blame] | 113 | fadt->cst_cnt = 0x00; /* unused if SMI_CMD = 0 */ |
| 114 | fadt->p_lvl2_lat = ACPI_FADT_C2_NOT_SUPPORTED; |
| 115 | fadt->p_lvl3_lat = ACPI_FADT_C3_NOT_SUPPORTED; |
Marc Jones | b547c4f | 2012-05-09 15:34:49 -0600 | [diff] [blame] | 116 | fadt->flush_size = 0; /* set to 0 if WBINVD is 1 in flags */ |
| 117 | fadt->flush_stride = 0; /* set to 0 if WBINVD is 1 in flags */ |
Martin Roth | 9aa4389 | 2012-05-25 12:23:32 -0600 | [diff] [blame] | 118 | fadt->duty_offset = 1; /* CLK_VAL bits 3:1 */ |
| 119 | fadt->duty_width = 3; /* CLK_VAL bits 3:1 */ |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 120 | fadt->day_alrm = 0; /* 0x7d these have to be */ |
| 121 | fadt->mon_alrm = 0; /* 0x7e added to cmos.layout */ |
Martin Roth | 3c3a50c | 2014-12-16 20:50:26 -0700 | [diff] [blame] | 122 | fadt->century = 0; /* 0x7f to make rtc alarm work */ |
Marc Jones | 7c9ef4f | 2012-05-10 11:02:32 -0600 | [diff] [blame] | 123 | fadt->iapc_boot_arch = FADT_BOOT_ARCH; /* See table 5-10 */ |
Marc Jones | b547c4f | 2012-05-09 15:34:49 -0600 | [diff] [blame] | 124 | fadt->res2 = 0; /* reserved, MUST be 0 ACPI 3.0 */ |
| 125 | fadt->flags = ACPI_FADT_WBINVD | /* See table 5-10 ACPI 3.0a spec */ |
| 126 | ACPI_FADT_C1_SUPPORTED | |
| 127 | ACPI_FADT_SLEEP_BUTTON | |
| 128 | ACPI_FADT_S4_RTC_WAKE | |
| 129 | ACPI_FADT_32BIT_TIMER | |
| 130 | ACPI_FADT_RESET_REGISTER | |
| 131 | ACPI_FADT_PCI_EXPRESS_WAKE | |
| 132 | ACPI_FADT_S4_RTC_VALID | |
| 133 | ACPI_FADT_REMOTE_POWER_ON; |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 134 | |
Marc Jones | b547c4f | 2012-05-09 15:34:49 -0600 | [diff] [blame] | 135 | /* Format is from 5.2.3.1: Generic Address Structure */ |
| 136 | /* reset_reg: see section 4.7.3.6 ACPI 3.0a spec */ |
| 137 | /* 8 bit write of value 0x06 to 0xCF9 in IO space */ |
| 138 | fadt->reset_reg.space_id = ACPI_ADDRESS_SPACE_IO; |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 139 | fadt->reset_reg.bit_width = 8; |
| 140 | fadt->reset_reg.bit_offset = 0; |
Marc Jones | b547c4f | 2012-05-09 15:34:49 -0600 | [diff] [blame] | 141 | fadt->reset_reg.access_size = ACPI_ACCESS_SIZE_BYTE_ACCESS; |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 142 | fadt->reset_reg.addrl = 0xcf9; |
| 143 | fadt->reset_reg.addrh = 0x0; |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 144 | fadt->reset_value = 6; |
Marc Jones | b547c4f | 2012-05-09 15:34:49 -0600 | [diff] [blame] | 145 | |
Elyes HAOUAS | f5b974e | 2018-11-10 20:29:08 +0100 | [diff] [blame] | 146 | fadt->ARM_boot_arch = 0; /* MUST be 0 ACPI 3.0 */ |
| 147 | fadt->FADT_MinorVersion = 0; /* MUST be 0 ACPI 3.0 */ |
Marc Jones | b547c4f | 2012-05-09 15:34:49 -0600 | [diff] [blame] | 148 | |
Stefan Reinauer | 12bce3f | 2015-06-18 01:17:38 -0700 | [diff] [blame] | 149 | fadt->x_firmware_ctl_l = ((uintptr_t)facs) & 0xffffffff; |
| 150 | fadt->x_firmware_ctl_h = ((uint64_t)(uintptr_t)facs) >> 32; |
| 151 | fadt->x_dsdt_l = ((uintptr_t)dsdt) & 0xffffffff; |
| 152 | fadt->x_dsdt_h = ((uint64_t)(uintptr_t)dsdt) >> 32; |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 153 | |
Marc Jones | b547c4f | 2012-05-09 15:34:49 -0600 | [diff] [blame] | 154 | fadt->x_pm1a_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO; |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 155 | fadt->x_pm1a_evt_blk.bit_width = 32; |
| 156 | fadt->x_pm1a_evt_blk.bit_offset = 0; |
Martin Roth | 9aa4389 | 2012-05-25 12:23:32 -0600 | [diff] [blame] | 157 | fadt->x_pm1a_evt_blk.access_size = ACPI_ACCESS_SIZE_WORD_ACCESS; |
Kerry She | feed329 | 2011-08-18 18:03:44 +0800 | [diff] [blame] | 158 | fadt->x_pm1a_evt_blk.addrl = PM1_EVT_BLK_ADDRESS; |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 159 | fadt->x_pm1a_evt_blk.addrh = 0x0; |
| 160 | |
Marc Jones | b547c4f | 2012-05-09 15:34:49 -0600 | [diff] [blame] | 161 | fadt->x_pm1b_evt_blk.space_id = ACPI_ADDRESS_SPACE_IO; |
| 162 | fadt->x_pm1b_evt_blk.bit_width = 0; |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 163 | fadt->x_pm1b_evt_blk.bit_offset = 0; |
Marc Jones | b547c4f | 2012-05-09 15:34:49 -0600 | [diff] [blame] | 164 | fadt->x_pm1b_evt_blk.access_size = 0; |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 165 | fadt->x_pm1b_evt_blk.addrl = 0x0; |
| 166 | fadt->x_pm1b_evt_blk.addrh = 0x0; |
| 167 | |
| 168 | |
Marc Jones | b547c4f | 2012-05-09 15:34:49 -0600 | [diff] [blame] | 169 | fadt->x_pm1a_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO; |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 170 | fadt->x_pm1a_cnt_blk.bit_width = 16; |
| 171 | fadt->x_pm1a_cnt_blk.bit_offset = 0; |
Marc Jones | b547c4f | 2012-05-09 15:34:49 -0600 | [diff] [blame] | 172 | fadt->x_pm1a_cnt_blk.access_size = 0; |
Kerry She | feed329 | 2011-08-18 18:03:44 +0800 | [diff] [blame] | 173 | fadt->x_pm1a_cnt_blk.addrl = PM1_CNT_BLK_ADDRESS; |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 174 | fadt->x_pm1a_cnt_blk.addrh = 0x0; |
| 175 | |
Marc Jones | b547c4f | 2012-05-09 15:34:49 -0600 | [diff] [blame] | 176 | fadt->x_pm1b_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO; |
| 177 | fadt->x_pm1b_cnt_blk.bit_width = 0; |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 178 | fadt->x_pm1b_cnt_blk.bit_offset = 0; |
Marc Jones | b547c4f | 2012-05-09 15:34:49 -0600 | [diff] [blame] | 179 | fadt->x_pm1b_cnt_blk.access_size = 0; |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 180 | fadt->x_pm1b_cnt_blk.addrl = 0x0; |
| 181 | fadt->x_pm1b_cnt_blk.addrh = 0x0; |
| 182 | |
| 183 | |
Marc Jones | b547c4f | 2012-05-09 15:34:49 -0600 | [diff] [blame] | 184 | fadt->x_pm2_cnt_blk.space_id = ACPI_ADDRESS_SPACE_IO; |
| 185 | fadt->x_pm2_cnt_blk.bit_width = 8; /* Hudson 1 Pm2Control is 8 bits */ |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 186 | fadt->x_pm2_cnt_blk.bit_offset = 0; |
Marc Jones | b547c4f | 2012-05-09 15:34:49 -0600 | [diff] [blame] | 187 | fadt->x_pm2_cnt_blk.access_size = ACPI_ACCESS_SIZE_BYTE_ACCESS; |
Kerry She | feed329 | 2011-08-18 18:03:44 +0800 | [diff] [blame] | 188 | fadt->x_pm2_cnt_blk.addrl = ACPI_PMA_CNT_BLK_ADDRESS; |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 189 | fadt->x_pm2_cnt_blk.addrh = 0x0; |
| 190 | |
| 191 | |
Marc Jones | b547c4f | 2012-05-09 15:34:49 -0600 | [diff] [blame] | 192 | fadt->x_pm_tmr_blk.space_id = ACPI_ADDRESS_SPACE_IO; |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 193 | fadt->x_pm_tmr_blk.bit_width = 32; |
| 194 | fadt->x_pm_tmr_blk.bit_offset = 0; |
Martin Roth | 9aa4389 | 2012-05-25 12:23:32 -0600 | [diff] [blame] | 195 | fadt->x_pm_tmr_blk.access_size = ACPI_ACCESS_SIZE_DWORD_ACCESS; |
Kerry She | feed329 | 2011-08-18 18:03:44 +0800 | [diff] [blame] | 196 | fadt->x_pm_tmr_blk.addrl = PM1_TMR_BLK_ADDRESS; |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 197 | fadt->x_pm_tmr_blk.addrh = 0x0; |
| 198 | |
| 199 | |
Marc Jones | b547c4f | 2012-05-09 15:34:49 -0600 | [diff] [blame] | 200 | fadt->x_gpe0_blk.space_id = ACPI_ADDRESS_SPACE_IO; |
Martin Roth | 9aa4389 | 2012-05-25 12:23:32 -0600 | [diff] [blame] | 201 | fadt->x_gpe0_blk.bit_width = 64; /* EventStatus + Event Enable */ |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 202 | fadt->x_gpe0_blk.bit_offset = 0; |
Marc Jones | b547c4f | 2012-05-09 15:34:49 -0600 | [diff] [blame] | 203 | fadt->x_gpe0_blk.access_size = ACPI_ACCESS_SIZE_DWORD_ACCESS; |
Kerry She | feed329 | 2011-08-18 18:03:44 +0800 | [diff] [blame] | 204 | fadt->x_gpe0_blk.addrl = GPE0_BLK_ADDRESS; |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 205 | fadt->x_gpe0_blk.addrh = 0x0; |
| 206 | |
| 207 | |
Marc Jones | b547c4f | 2012-05-09 15:34:49 -0600 | [diff] [blame] | 208 | fadt->x_gpe1_blk.space_id = ACPI_ADDRESS_SPACE_IO; |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 209 | fadt->x_gpe1_blk.bit_width = 0; |
| 210 | fadt->x_gpe1_blk.bit_offset = 0; |
Marc Jones | b547c4f | 2012-05-09 15:34:49 -0600 | [diff] [blame] | 211 | fadt->x_gpe1_blk.access_size = 0; |
Frank Vibrans | 69da1b6 | 2011-02-14 19:04:45 +0000 | [diff] [blame] | 212 | fadt->x_gpe1_blk.addrl = 0; |
| 213 | fadt->x_gpe1_blk.addrh = 0x0; |
| 214 | |
| 215 | header->checksum = acpi_checksum((void *)fadt, sizeof(acpi_fadt_t)); |
| 216 | |
| 217 | } |