diff options
author | Andrew McRae <amcrae@google.com> | 2020-08-21 15:30:06 +1000 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-08-21 11:25:21 +0000 |
commit | f832dc1f14ee2086d1903c5e38e927485eb067dc (patch) | |
tree | b842adc1c778354c6ecb7b1aadac2ca2806bd571 /board | |
parent | ec6669945dc38d053e139587e3346d80f1f0d6c8 (diff) | |
download | chrome-ec-f832dc1f14ee2086d1903c5e38e927485eb067dc.tar.gz |
Puff: revert hack to set fw_config
Earlier board versions did not always have the correct CBI settings, so
a hack was added to correctly set the fw_config for those boards.
This is no longer necessary, and should be removed before RO.
BUG=b:165883533
TEST=Build and run on puff.
BRANCH=puff
Signed-off-by: Andrew McRae <amcrae@google.com>
Change-Id: I596f5b0f4c76a834e23e3c833f440308e5bb4b85
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2367425
Tested-by: Sam McNally <sammc@chromium.org>
Reviewed-by: Sam McNally <sammc@chromium.org>
Commit-Queue: Andrew McRae <amcrae@chromium.org>
Diffstat (limited to 'board')
-rw-r--r-- | board/puff/board.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/board/puff/board.c b/board/puff/board.c index eaea4b4259..02b5b0d6bd 100644 --- a/board/puff/board.c +++ b/board/puff/board.c @@ -430,20 +430,6 @@ static void cbi_init(void) sku_id = val; if (cbi_get_fw_config(&val) == EC_SUCCESS) fw_config = val; - else if (board_version == 1 || board_version == 2) { - /* Hack to set the barrel-jack adapter using SKU ID */ - switch (sku_id) { - case 0x00000001: - case 0x00000002: - case 0x01000001: - case 0x01000003: - case 0x01000004: - case 0x02000000: - fw_config = 0x1; - break; - } - CPRINTS("F/W config NOT SET, defaulting to 0x%08x", fw_config); - } CPRINTS("Board Version: %d, SKU ID: 0x%08x, F/W config: 0x%08x", board_version, sku_id, fw_config); } |