summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorRyan Zhang <Ryan.Zhang@quanta.corp-partner.google.com>2018-01-25 14:35:37 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-02-08 09:24:07 -0800
commit6c5a4424d7dc0f636aef2f6e8b28511433d28939 (patch)
tree7a974ac8343239eaa6a628b61d1d3e1d88674ce5 /common
parentececca49aad9dc928d2dd4d30763477db30cb64e (diff)
downloadchrome-ec-6c5a4424d7dc0f636aef2f6e8b28511433d28939.tar.gz
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 <ryan.zhang@quanta.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/886121 Commit-Ready: Daisuke Nojiri <dnojiri@chromium.org> Tested-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/cbi.c9
1 files changed, 9 insertions, 0 deletions
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);