mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-27 11:44:02 +00:00
Add flashmap base address
Change-Id: If2106cbde445edc0970862a06d3837d2e466d9ef BUG=chrome-os-partner:2487 TEST=manual From a root shell, type: crossystem fmap_base Should match the contents of /sys/devices/platform/chromeos_acpi/FMAP (note that you need a new BIOS >0049 to get one that supports FMAP) Review URL: http://codereview.chromium.org/6580037
This commit is contained in:
@@ -61,6 +61,7 @@
|
|||||||
#define ACPI_BINF_PATH ACPI_BASE_PATH "/BINF"
|
#define ACPI_BINF_PATH ACPI_BASE_PATH "/BINF"
|
||||||
#define ACPI_CHNV_PATH ACPI_BASE_PATH "/CHNV"
|
#define ACPI_CHNV_PATH ACPI_BASE_PATH "/CHNV"
|
||||||
#define ACPI_CHSW_PATH ACPI_BASE_PATH "/CHSW"
|
#define ACPI_CHSW_PATH ACPI_BASE_PATH "/CHSW"
|
||||||
|
#define ACPI_FMAP_PATH ACPI_BASE_PATH "/FMAP"
|
||||||
#define ACPI_GPIO_PATH ACPI_BASE_PATH "/GPIO"
|
#define ACPI_GPIO_PATH ACPI_BASE_PATH "/GPIO"
|
||||||
|
|
||||||
/* Base name for GPIO files */
|
/* Base name for GPIO files */
|
||||||
@@ -395,6 +396,8 @@ int VbGetSystemPropertyInt(const char* name) {
|
|||||||
/* Other parameters */
|
/* Other parameters */
|
||||||
else if (!strcasecmp(name,"recovery_reason")) {
|
else if (!strcasecmp(name,"recovery_reason")) {
|
||||||
return VbGetRecoveryReason();
|
return VbGetRecoveryReason();
|
||||||
|
} else if (!strcasecmp(name,"fmap_base")) {
|
||||||
|
value = ReadFileInt(ACPI_FMAP_PATH);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* TODO: implement the following properties:
|
/* TODO: implement the following properties:
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ const Param sys_param_list[] = {
|
|||||||
{"recovery_reason", 0, 0, "Recovery mode reason for current boot"},
|
{"recovery_reason", 0, 0, "Recovery mode reason for current boot"},
|
||||||
{"savedmem_base", 0, 0, "RAM debug data area physical address"},
|
{"savedmem_base", 0, 0, "RAM debug data area physical address"},
|
||||||
{"savedmem_size", 0, 0, "RAM debug data area size in bytes"},
|
{"savedmem_size", 0, 0, "RAM debug data area size in bytes"},
|
||||||
|
{"fmap_base", 0, 0, "Main firmware flashmap physical address"},
|
||||||
/* Read-only strings */
|
/* Read-only strings */
|
||||||
{"hwid", 1, 0, "Hardware ID"},
|
{"hwid", 1, 0, "Hardware ID"},
|
||||||
{"fwid", 1, 0, "Active firmware ID"},
|
{"fwid", 1, 0, "Active firmware ID"},
|
||||||
|
|||||||
Reference in New Issue
Block a user