From 6c5a4424d7dc0f636aef2f6e8b28511433d28939 Mon Sep 17 00:00:00 2001 From: Ryan Zhang Date: Thu, 25 Jan 2018 14:35:37 +0800 Subject: Fizz: Update thermal table by project 1. Prochot/Shutdown Point a. Prochot on: >=81C, off: <=77C b. Shutodwn: >=82C 2. custom fan table There are three projects sharing two tables, and use Kench & Teemo's table before getting correct OEM ID because it raises fan speed quicker than the other one. a. Kench & Teemo & default b. Sion BUG=b:70294260 BRANCH=master TEST=EC can get two fan tables with different cbi value. Change-Id: Ie1bffbcf5c353a9aae5806f6c2b41554eed22b7d Signed-off-by: Ryan Zhang Reviewed-on: https://chromium-review.googlesource.com/886121 Commit-Ready: Daisuke Nojiri Tested-by: Daisuke Nojiri Reviewed-by: Daisuke Nojiri --- common/cbi.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'common') diff --git a/common/cbi.c b/common/cbi.c index 7d7594df98..ac7708c12c 100644 --- a/common/cbi.c +++ b/common/cbi.c @@ -254,3 +254,12 @@ static int hc_cbi_set(struct host_cmd_handler_args *args) DECLARE_HOST_COMMAND(EC_CMD_SET_CROS_BOARD_INFO, hc_cbi_set, EC_VER_MASK(0)); + +static int command_dump_cbi(int argc, char **argv) +{ + ccprintf("BOARD_VERSION: %u (0x%x)\n", bi.version, bi.version); + ccprintf("OEM_ID: %u (0x%x)\n", bi.oem_id, bi.oem_id); + ccprintf("SKU_ID: %u (0x%x)\n", bi.sku_id, bi.sku_id); + return EC_SUCCESS; +} +DECLARE_CONSOLE_COMMAND(cbi, command_dump_cbi, NULL, NULL); -- cgit v1.2.1