summaryrefslogtreecommitdiff
path: root/board/host
diff options
context:
space:
mode:
authorPhilip Chen <philipchen@google.com>2021-06-16 16:38:44 -0700
committerCommit Bot <commit-bot@chromium.org>2021-06-29 01:40:44 +0000
commit6d163016d305d63a72ca3884cc9da9b618f6609d (patch)
treec601e7e0c2a7eb3ea5f1dedf44ffc155053ff1cd /board/host
parent8442045be1484112995eccee740bcff350e7f9a8 (diff)
downloadchrome-ec-6d163016d305d63a72ca3884cc9da9b618f6609d.tar.gz
cbi: Separate CBI EEPROM driver from CBI protocol
Factor out the physical storage driver (cbi_eeprom.c) from the CBI data/protocol layer (cbi.c), setting up the groundwork to support more options of CBI sources. BRANCH=None BUG=b:186264627 TEST=make buildall -j Change-Id: Ic30a6f789970dd6723cf70d4e852ddb7161f796f Signed-off-by: Philip Chen <philipchen@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2965848 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> Commit-Queue: Philip Chen <philipchen@chromium.org> Tested-by: Philip Chen <philipchen@chromium.org>
Diffstat (limited to 'board/host')
-rw-r--r--board/host/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/host/board.c b/board/host/board.c
index b59b570d52..191fd832e1 100644
--- a/board/host/board.c
+++ b/board/host/board.c
@@ -104,7 +104,7 @@ int board_get_entropy(void *buffer, int len)
}
#endif
-static uint8_t eeprom[CBI_EEPROM_SIZE];
+static uint8_t eeprom[CBI_IMAGE_SIZE];
int eeprom_i2c_xfer(int port, uint16_t addr_flags,
const uint8_t *out, int out_size,