|
@@ -20,7 +20,6 @@
|
|
|
#include <asm/mpspec.h>
|
|
|
#include <asm/tables.h>
|
|
|
#include <asm/arch/global_nvs.h>
|
|
|
-#include "acpi_table.h"
|
|
|
|
|
|
/*
|
|
|
* IASL compiles the dsdt entries and writes the hex values
|
|
@@ -29,7 +28,7 @@
|
|
|
extern const unsigned char AmlCode[];
|
|
|
|
|
|
/* ACPI RSDP address to be used in boot parameters */
|
|
|
-unsigned long acpi_rsdp_addr;
|
|
|
+static ulong acpi_rsdp_addr;
|
|
|
|
|
|
static void acpi_write_rsdp(struct acpi_rsdp *rsdp, struct acpi_rsdt *rsdt,
|
|
|
struct acpi_xsdt *xsdt)
|
|
@@ -480,6 +479,11 @@ ulong write_acpi_tables(ulong start)
|
|
|
return current;
|
|
|
}
|
|
|
|
|
|
+ulong acpi_get_rsdp_addr(void)
|
|
|
+{
|
|
|
+ return acpi_rsdp_addr;
|
|
|
+}
|
|
|
+
|
|
|
static struct acpi_rsdp *acpi_valid_rsdp(struct acpi_rsdp *rsdp)
|
|
|
{
|
|
|
if (strncmp((char *)rsdp, RSDP_SIG, sizeof(RSDP_SIG) - 1) != 0)
|