soc/intel: Remove unused code
Delete acpi_create_intel_hpet() which has been replaced by acpi_write_hpet() in the corresponding soc folders some time ago. Change-Id: I788c9ef27cdc575eb8467cbef64ee52f4053e197 Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/35207 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: David Guckian Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
b1ef725f39
commit
728a06032d
|
@ -131,37 +131,6 @@ static int acpi_sci_irq(void)
|
||||||
return sci_irq;
|
return sci_irq;
|
||||||
}
|
}
|
||||||
|
|
||||||
void acpi_create_intel_hpet(acpi_hpet_t * hpet)
|
|
||||||
{
|
|
||||||
acpi_header_t *header = &(hpet->header);
|
|
||||||
acpi_addr_t *addr = &(hpet->addr);
|
|
||||||
|
|
||||||
memset((void *) hpet, 0, sizeof(acpi_hpet_t));
|
|
||||||
|
|
||||||
/* fill out header fields */
|
|
||||||
memcpy(header->signature, "HPET", 4);
|
|
||||||
memcpy(header->oem_id, OEM_ID, 6);
|
|
||||||
memcpy(header->oem_table_id, ACPI_TABLE_CREATOR, 8);
|
|
||||||
memcpy(header->asl_compiler_id, ASLC, 4);
|
|
||||||
|
|
||||||
header->length = sizeof(acpi_hpet_t);
|
|
||||||
header->revision = get_acpi_table_revision(HPET);
|
|
||||||
|
|
||||||
/* fill out HPET address */
|
|
||||||
addr->space_id = 0; /* Memory */
|
|
||||||
addr->bit_width = 64;
|
|
||||||
addr->bit_offset = 0;
|
|
||||||
addr->addrl = (unsigned long long)HPET_BASE_ADDRESS & 0xffffffff;
|
|
||||||
addr->addrh = (unsigned long long)HPET_BASE_ADDRESS >> 32;
|
|
||||||
|
|
||||||
hpet->id = 0x8086a201; /* Intel */
|
|
||||||
hpet->number = 0x00;
|
|
||||||
hpet->min_tick = 0x0080;
|
|
||||||
|
|
||||||
header->checksum =
|
|
||||||
acpi_checksum((void *) hpet, sizeof(acpi_hpet_t));
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned long acpi_fill_mcfg(unsigned long current)
|
unsigned long acpi_fill_mcfg(unsigned long current)
|
||||||
{
|
{
|
||||||
current += acpi_create_mcfg_mmconfig((acpi_mcfg_mmconfig_t *)current,
|
current += acpi_create_mcfg_mmconfig((acpi_mcfg_mmconfig_t *)current,
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
#include <arch/acpi.h>
|
#include <arch/acpi.h>
|
||||||
#include <soc/nvs.h>
|
#include <soc/nvs.h>
|
||||||
|
|
||||||
void acpi_create_intel_hpet(acpi_hpet_t * hpet);
|
|
||||||
void acpi_fill_in_fadt(acpi_fadt_t *fadt);
|
void acpi_fill_in_fadt(acpi_fadt_t *fadt);
|
||||||
unsigned long acpi_madt_irq_overrides(unsigned long current);
|
unsigned long acpi_madt_irq_overrides(unsigned long current);
|
||||||
void acpi_init_gnvs(global_nvs_t *gnvs);
|
void acpi_init_gnvs(global_nvs_t *gnvs);
|
||||||
|
|
|
@ -185,37 +185,6 @@ void acpi_init_gnvs(global_nvs_t *gnvs)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void acpi_create_intel_hpet(acpi_hpet_t *hpet)
|
|
||||||
{
|
|
||||||
acpi_header_t *header = &(hpet->header);
|
|
||||||
acpi_addr_t *addr = &(hpet->addr);
|
|
||||||
|
|
||||||
memset((void *) hpet, 0, sizeof(acpi_hpet_t));
|
|
||||||
|
|
||||||
/* fill out header fields */
|
|
||||||
memcpy(header->signature, "HPET", 4);
|
|
||||||
memcpy(header->oem_id, OEM_ID, 6);
|
|
||||||
memcpy(header->oem_table_id, ACPI_TABLE_CREATOR, 8);
|
|
||||||
memcpy(header->asl_compiler_id, ASLC, 4);
|
|
||||||
|
|
||||||
header->length = sizeof(acpi_hpet_t);
|
|
||||||
header->revision = get_acpi_table_revision(HPET);
|
|
||||||
|
|
||||||
/* fill out HPET address */
|
|
||||||
addr->space_id = 0; /* Memory */
|
|
||||||
addr->bit_width = 64;
|
|
||||||
addr->bit_offset = 0;
|
|
||||||
addr->addrl = (unsigned long long)HPET_BASE_ADDRESS & 0xffffffff;
|
|
||||||
addr->addrh = (unsigned long long)HPET_BASE_ADDRESS >> 32;
|
|
||||||
|
|
||||||
hpet->id = 0x8086a201; /* Intel */
|
|
||||||
hpet->number = 0x00;
|
|
||||||
hpet->min_tick = 0x0080;
|
|
||||||
|
|
||||||
header->checksum =
|
|
||||||
acpi_checksum((void *) hpet, sizeof(acpi_hpet_t));
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned long acpi_fill_mcfg(unsigned long current)
|
unsigned long acpi_fill_mcfg(unsigned long current)
|
||||||
{
|
{
|
||||||
current += acpi_create_mcfg_mmconfig((acpi_mcfg_mmconfig_t *)current,
|
current += acpi_create_mcfg_mmconfig((acpi_mcfg_mmconfig_t *)current,
|
||||||
|
|
|
@ -25,7 +25,6 @@
|
||||||
#define PSS_LATENCY_TRANSITION 10
|
#define PSS_LATENCY_TRANSITION 10
|
||||||
#define PSS_LATENCY_BUSMASTER 10
|
#define PSS_LATENCY_BUSMASTER 10
|
||||||
|
|
||||||
void acpi_create_intel_hpet(acpi_hpet_t *hpet);
|
|
||||||
void acpi_fill_in_fadt(acpi_fadt_t *fadt);
|
void acpi_fill_in_fadt(acpi_fadt_t *fadt);
|
||||||
unsigned long acpi_madt_irq_overrides(unsigned long current);
|
unsigned long acpi_madt_irq_overrides(unsigned long current);
|
||||||
void acpi_init_gnvs(global_nvs_t *gnvs);
|
void acpi_init_gnvs(global_nvs_t *gnvs);
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
#include <arch/acpi.h>
|
#include <arch/acpi.h>
|
||||||
#include <soc/nvs.h>
|
#include <soc/nvs.h>
|
||||||
|
|
||||||
void acpi_create_intel_hpet(acpi_hpet_t *hpet);
|
|
||||||
void acpi_create_serialio_ssdt(acpi_header_t *ssdt);
|
void acpi_create_serialio_ssdt(acpi_header_t *ssdt);
|
||||||
unsigned long acpi_madt_irq_overrides(unsigned long current);
|
unsigned long acpi_madt_irq_overrides(unsigned long current);
|
||||||
void acpi_init_gnvs(global_nvs_t *gnvs);
|
void acpi_init_gnvs(global_nvs_t *gnvs);
|
||||||
|
|
|
@ -128,37 +128,6 @@ static int acpi_sci_irq(void)
|
||||||
return sci_irq;
|
return sci_irq;
|
||||||
}
|
}
|
||||||
|
|
||||||
void acpi_create_intel_hpet(acpi_hpet_t * hpet)
|
|
||||||
{
|
|
||||||
acpi_header_t *header = &(hpet->header);
|
|
||||||
acpi_addr_t *addr = &(hpet->addr);
|
|
||||||
|
|
||||||
memset((void *) hpet, 0, sizeof(acpi_hpet_t));
|
|
||||||
|
|
||||||
/* fill out header fields */
|
|
||||||
memcpy(header->signature, "HPET", 4);
|
|
||||||
memcpy(header->oem_id, OEM_ID, 6);
|
|
||||||
memcpy(header->oem_table_id, ACPI_TABLE_CREATOR, 8);
|
|
||||||
memcpy(header->asl_compiler_id, ASLC, 4);
|
|
||||||
|
|
||||||
header->length = sizeof(acpi_hpet_t);
|
|
||||||
header->revision = get_acpi_table_revision(HPET);
|
|
||||||
|
|
||||||
/* fill out HPET address */
|
|
||||||
addr->space_id = 0; /* Memory */
|
|
||||||
addr->bit_width = 64;
|
|
||||||
addr->bit_offset = 0;
|
|
||||||
addr->addrl = (unsigned long long)HPET_BASE_ADDRESS & 0xffffffff;
|
|
||||||
addr->addrh = (unsigned long long)HPET_BASE_ADDRESS >> 32;
|
|
||||||
|
|
||||||
hpet->id = 0x8086a201; /* Intel */
|
|
||||||
hpet->number = 0x00;
|
|
||||||
hpet->min_tick = 0x0080;
|
|
||||||
|
|
||||||
header->checksum =
|
|
||||||
acpi_checksum((void *) hpet, sizeof(acpi_hpet_t));
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned long acpi_fill_mcfg(unsigned long current)
|
unsigned long acpi_fill_mcfg(unsigned long current)
|
||||||
{
|
{
|
||||||
current += acpi_create_mcfg_mmconfig((acpi_mcfg_mmconfig_t *)current,
|
current += acpi_create_mcfg_mmconfig((acpi_mcfg_mmconfig_t *)current,
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
#include <soc/nvs.h>
|
#include <soc/nvs.h>
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
|
|
||||||
void acpi_create_intel_hpet(acpi_hpet_t * hpet);
|
|
||||||
void acpi_create_serialio_ssdt(acpi_header_t *ssdt);
|
void acpi_create_serialio_ssdt(acpi_header_t *ssdt);
|
||||||
void acpi_fill_in_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt);
|
void acpi_fill_in_fadt(acpi_fadt_t * fadt, acpi_facs_t * facs, void *dsdt);
|
||||||
unsigned long acpi_madt_irq_overrides(unsigned long current);
|
unsigned long acpi_madt_irq_overrides(unsigned long current);
|
||||||
|
|
|
@ -114,36 +114,6 @@ static int acpi_sci_irq(void)
|
||||||
return sci_irq;
|
return sci_irq;
|
||||||
}
|
}
|
||||||
|
|
||||||
void acpi_create_intel_hpet(acpi_hpet_t *hpet)
|
|
||||||
{
|
|
||||||
acpi_header_t *header = &(hpet->header);
|
|
||||||
acpi_addr_t *addr = &(hpet->addr);
|
|
||||||
|
|
||||||
memset((void *) hpet, 0, sizeof(acpi_hpet_t));
|
|
||||||
|
|
||||||
/* fill out header fields */
|
|
||||||
memcpy(header->signature, "HPET", 4);
|
|
||||||
memcpy(header->oem_id, OEM_ID, 6);
|
|
||||||
memcpy(header->oem_table_id, ACPI_TABLE_CREATOR, 8);
|
|
||||||
memcpy(header->asl_compiler_id, ASLC, 4);
|
|
||||||
|
|
||||||
header->length = sizeof(acpi_hpet_t);
|
|
||||||
header->revision = get_acpi_table_revision(HPET);
|
|
||||||
|
|
||||||
/* fill out HPET address */
|
|
||||||
addr->space_id = 0; /* Memory */
|
|
||||||
addr->bit_width = 64;
|
|
||||||
addr->bit_offset = 0;
|
|
||||||
addr->addrl = (unsigned long long)HPET_BASE_ADDRESS & 0xffffffff;
|
|
||||||
addr->addrh = (unsigned long long)HPET_BASE_ADDRESS >> 32;
|
|
||||||
|
|
||||||
hpet->id = 0x8086a201; /* Intel */
|
|
||||||
hpet->number = 0x00;
|
|
||||||
hpet->min_tick = 0x0080;
|
|
||||||
|
|
||||||
header->checksum = acpi_checksum((void *) hpet, sizeof(acpi_hpet_t));
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned long acpi_fill_mcfg(unsigned long current)
|
unsigned long acpi_fill_mcfg(unsigned long current)
|
||||||
{
|
{
|
||||||
current += acpi_create_mcfg_mmconfig((acpi_mcfg_mmconfig_t *)current,
|
current += acpi_create_mcfg_mmconfig((acpi_mcfg_mmconfig_t *)current,
|
||||||
|
|
|
@ -20,7 +20,6 @@
|
||||||
|
|
||||||
#include <arch/acpi.h>
|
#include <arch/acpi.h>
|
||||||
|
|
||||||
void acpi_create_intel_hpet(acpi_hpet_t *hpet);
|
|
||||||
void acpi_fill_in_fadt(acpi_fadt_t *fadt, acpi_facs_t *facs, void *dsdt);
|
void acpi_fill_in_fadt(acpi_fadt_t *fadt, acpi_facs_t *facs, void *dsdt);
|
||||||
unsigned long acpi_madt_irq_overrides(unsigned long current);
|
unsigned long acpi_madt_irq_overrides(unsigned long current);
|
||||||
uint16_t get_pmbase(void);
|
uint16_t get_pmbase(void);
|
||||||
|
|
Loading…
Reference in New Issue