mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-01 21:02:27 +00:00
3423baba30cf213a8458ca09c35c73880d3e3fc3
Coral has 16 voltage levels utilized for board ID. Compared to 8 for Reef. This CL updates the board_version table to account for 16 board version entries. In addition, insted of using a fixed error percentage upper error bar, the table entries have been set to be the mid point between two consecutive voltage levels. MOdified the existing board_get_version() function so that it calls a common function since this needs to be repeated for both board ID and board SKUs. Modified gpio enable signal name to match the schematic. Coral uses an active high enable. Added an EC console command with options id|sku0|sku1 to test each option. This CL does not include the function which will be used with the host command interface so the AP can retrieve the sku 0|1 values. BUG=b:62519010 BRANCH=none TEST=MANUAL Using the console command board_id shows the following: > board_id Wrong number of params Usage: board_id <id | sku0 | sku1> > board_id id [44.484516 ID/SKU ADC 2 = 123 mV] Board id|sku: chan 2 = 0 > board_id sku0 [56.850566 ID/SKU ADC 4 = 123 mV] Board id|sku: chan 4 = 0 > board_id sku1 [65.547598 ID/SKU ADC 3 = 123 mV] Board id|sku: chan 3 = 0 Change-Id: Iaba146c12c6d9d2c57973569d51c1b7ad3212455 Signed-off-by: Scott Collyer <scollyer@google.com> Reviewed-on: https://chromium-review.googlesource.com/530907 Commit-Ready: Scott Collyer <scollyer@chromium.org> Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
For an overview of the Embedded Controller firmware, refer to http://www.chromium.org/chromium-os/2014-firmware-summit For instructions on building from source, refer to http://www.chromium.org/chromium-os/ec-development/getting-started-building-ec-images-quickly
Description
Languages
C
64.7%
Lasso
20.7%
ASL
3.6%
JavaScript
3.2%
C#
2.9%
Other
4.6%