diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2020-01-13 08:47:51 +1100 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-01-13 19:34:01 +0000 |
commit | 6bfa838a0d5fd9498ac0c298bfb08b99b5fe4a7e (patch) | |
tree | a1235fddd97d2525edee17afda6061a8c88c560b /chip | |
parent | f15eb886693218bb2bd8891fef0c3500ab537e56 (diff) | |
download | chrome-ec-6bfa838a0d5fd9498ac0c298bfb08b99b5fe4a7e.tar.gz |
drop chip factory mode support
There is no need to keep the code supporting chip factory mode in
Chrome OS production branches, this code is never used outside of the
chip factory environment.
BRANCH=cr50, cr50-mp
BUG=none
TEST=built an image, verified that an Atlas device boots up into the
previously created Chrome OS account.
Change-Id: If72635b014d15ef6e97fbc4fd5b54b61ec23299a
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1994369
Reviewed-by: Mary Ruthven <mruthven@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r-- | chip/g/sps_tpm.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/chip/g/sps_tpm.c b/chip/g/sps_tpm.c index 3e504f16b1..a4775e70f6 100644 --- a/chip/g/sps_tpm.c +++ b/chip/g/sps_tpm.c @@ -193,9 +193,6 @@ static void process_rx_data(uint8_t *data, size_t data_size, int cs_deasserted) static void tpm_rx_handler(uint8_t *data, size_t data_size, int cs_deasserted) { - if (chip_factory_mode()) - return; /* Ignore TPM traffic in factory mode. */ - if ((sps_tpm_state == SPS_TPM_STATE_RECEIVING_HEADER) || (sps_tpm_state == SPS_TPM_STATE_RECEIVING_WRITE_DATA)) process_rx_data(data, data_size, cs_deasserted); |