diff options
author | Bernie Thompson <bhthompson@chromium.org> | 2011-12-28 07:40:48 -0800 |
---|---|---|
committer | Gerrit <chrome-bot@google.com> | 2012-01-09 15:44:31 -0800 |
commit | 0b5789fee96b7213a9762c5b2cf7f705a99d95ef (patch) | |
tree | b40690b70dbddd109717895c5c9279cc74122195 /utility | |
parent | 946370d012a809bba833ff9d37fe0ce86af09860 (diff) | |
download | vboot-0b5789fee96b7213a9762c5b2cf7f705a99d95ef.tar.gz |
Add in a platform_family value to crossystem
This implements a platform_family value within the crossystem utility,
as the platform (particularly for ARM) is not easily accessable elsewhere at
runtime.
For the ARM side this contains a table which is used to determine the platform
family based on the /proc/device-tree/compatible entry. Similarly on x86 the
table is used to check against PCI entries. Additional entries can be made
as new platform families emerge.
BUG=chromium-os:24669
TEST=Manual, verified that crossystem runs properly and returns a valid
platform_family value on various platforms (mario, alex, z600, x220, etc).
Change-Id: Id0e973902d27ead471c1243bcc6c3292acc8479d
Reviewed-on: https://gerrit.chromium.org/gerrit/13520
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Commit-Ready: Olof Johansson <olofj@chromium.org>
Reviewed-by: Olof Johansson <olofj@chromium.org>
Tested-by: Olof Johansson <olofj@chromium.org>
Diffstat (limited to 'utility')
-rw-r--r-- | utility/crossystem_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/utility/crossystem_main.c b/utility/crossystem_main.c index b9c540e5..0a2e6def 100644 --- a/utility/crossystem_main.c +++ b/utility/crossystem_main.c @@ -56,6 +56,7 @@ const Param sys_param_list[] = { {"mainfw_act", IS_STRING, "Active main firmware"}, {"mainfw_type", IS_STRING, "Active main firmware type"}, {"nvram_cleared", CAN_WRITE, "Have NV settings been lost? Write 0 to clear"}, + {"platform_family", IS_STRING, "Platform family type"}, {"recovery_reason", 0, "Recovery mode reason for current boot"}, {"recovery_request", CAN_WRITE, "Recovery mode request (writable)"}, {"recoverysw_boot", 0, "Recovery switch position at boot"}, |