diff options
author | Namyoon Woo <namyoon@chromium.org> | 2020-03-02 09:13:49 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-03-03 15:43:15 +0000 |
commit | 91b40f83bf2d990b88fbbbebc6f4155a97c9328f (patch) | |
tree | eabad7a9f5cdb07c45ea7a18230c60a0f893af1c /chip/g/board_id.h | |
parent | 8bd1645dd4c3777db7070702711c3445b365ebb4 (diff) | |
download | chrome-ec-91b40f83bf2d990b88fbbbebc6f4155a97c9328f.tar.gz |
remove board/cr50 and chip/g
This patch removes cr50 related files from platform/ec.
BUG=b:149350081
BRANCH=none
TEST=$ make buildall -j
$ cros_workon --host list
chromeos-base/chromeos-cr50-dev
chromeos-base/chromeos-ec
chromeos-base/chromeos-ec-headers
chromeos-base/ec-devutils
chromeos-base/ec-utils
chromeos-base/ec-utils-test
dev-util/hdctools
$ sudo emerge chromeos-cr50-dev -j
$ sudo emerge chromeos-ec -j
$ sudo emerge chromeos-ec-headers -j
$ sudo emerge ec-devutils -j
$ sudo emerge ec-utils -j
$ sudo emerge ec-utils-test -j
$ sudo emerge hdctools -j
$ cros_workon-octopus list
chromeos-base/chromeos-ec
chromeos-base/chromeos-ec-headers
chromeos-base/ec-devutils
chromeos-base/ec-utils
chromeos-base/ec-utils-test
dev-util/hdctools
$ sudo emerge-octopus chromeos-ec -j
$ sudo emerge-octopus chromeos-ec-headers -j
$ sudo emerge-octopus ec-devutils -j
$ sudo emerge-octopus ec-utils -j
$ sudo emerge-octopus ec-utils-test -j
$ sudo emerge-octopus hdctools -j
Signed-off-by: Namyoon Woo <namyoon@chromium.org>
Change-Id: Ifa3a037fff17177204ce1a9b88474490fb9be3ed
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2083659
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'chip/g/board_id.h')
-rw-r--r-- | chip/g/board_id.h | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/chip/g/board_id.h b/chip/g/board_id.h deleted file mode 100644 index 01cb7e5028..0000000000 --- a/chip/g/board_id.h +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2017 The Chromium OS Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#ifndef __EC_CHIP_G_BOARD_ID_H -#define __EC_CHIP_G_BOARD_ID_H - -#include "board_space.h" -#include "common.h" -#include "signed_header.h" -#include "util.h" - -/** - * Check the current header vs. the supplied Board ID - * - * @param board_id Pointer to a Board ID structure to check - * @param h Pointer to the currently running image's header - * - * @return 0 if no mismatch, non-zero if mismatch - */ -uint32_t check_board_id_vs_header(const struct board_id *id, - const struct SignedHeader *h); - -/** - * Check board ID from the flash INFO1 space. - * - * @param id Pointer to a Board ID structure to fill - * - * @return EC_SUCCESS of an error code in cases of vairous failures to read. - */ -int read_board_id(struct board_id *id); - -/** - * Return the image header for the current image copy - */ -const struct SignedHeader *get_current_image_header(void); - -/** - * Check if board ID in the image matches board ID field in the INFO1. - * - * Pass the pointer to the image header to check. If the pointer is set to - * NULL, check board ID against the currently running image's header. All 1 - * bits in header Board ID flags must be present in the board id from flash. - * - * If the board id from flash is blank, board_id_type field from the header is - * ignored and only board_if_flags field is verified to match. - * - * Return true if there is a mismatch (the code should not run). - */ -uint32_t board_id_mismatch(const struct SignedHeader *h); - -/** - * Check if every field of the board id is 0xffffffff - * - * @param id Pointer to a Board ID structure - * - * @return True if the board id is all 0xffffffff. - */ -int board_id_is_blank(const struct board_id *id); - -/** - * Check if the board id type and type_inv are 0xffffffff. - * - * @param id Pointer to a Board ID structure - * - * @return True if the board id type and type_inv are 0xffffffff. - */ -int board_id_type_is_blank(const struct board_id *id); -#endif /* ! __EC_CHIP_G_BOARD_ID_H */ |