diff options
author | Gerrit <chrome-bot@google.com> | 2012-04-19 07:25:18 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@gerrit.golo.chromium.org> | 2012-04-19 07:25:18 -0700 |
commit | 61ea623120defbc119a38e5b00ba3e1c7042fb02 (patch) | |
tree | 5104b75f75e8a965614168e883b42f6a91d0d91f | |
parent | 23b8885a023ac5807a648c50f329cb36d5c79f46 (diff) | |
parent | 55dfbb89cce826d5fbd2da435ddd2173695c8aa1 (diff) | |
download | chrome-ec-61ea623120defbc119a38e5b00ba3e1c7042fb02.tar.gz |
Merge "Add chipinfo command"
-rw-r--r-- | common/system_common.c | 10 |
1 files changed, 10 insertions, 0 deletions
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; |