From 55dfbb89cce826d5fbd2da435ddd2173695c8aa1 Mon Sep 17 00:00:00 2001 From: Randall Spangler Date: Wed, 18 Apr 2012 13:52:22 -0700 Subject: [PATCH] Add chipinfo command Signed-off-by: Randall Spangler BUG=none TEST=chipinfo Change-Id: Ie3414bf92c9dd35aaa4e54028bd525e860028c33 --- common/system_common.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/common/system_common.c b/common/system_common.c index 95af150623..105d63f51d 100644 --- a/common/system_common.c +++ b/common/system_common.c @@ -253,6 +253,16 @@ static int command_sysinfo(int argc, char **argv) DECLARE_CONSOLE_COMMAND(sysinfo, command_sysinfo); +static int command_chipinfo(int argc, char **argv) +{ + uart_printf("Chip vendor: %s\n", system_get_chip_vendor()); + uart_printf("Chip name: %s\n", system_get_chip_name()); + uart_printf("Chip revision: %s\n", system_get_chip_revision()); + return EC_SUCCESS; +} +DECLARE_CONSOLE_COMMAND(chipinfo, command_chipinfo); + + static int command_set_scratchpad(int argc, char **argv) { int s;