diff options
author | Keith Short <keithshort@chromium.org> | 2020-07-19 16:58:40 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-08-20 20:16:18 +0000 |
commit | 06f584a8b508e881680c222498702f5148330a3f (patch) | |
tree | 268348c95a6cf27ab970ec3cce273c4b7a8b1e87 /board/volteer | |
parent | 049b77cf3749acf629e9c3c74650e0f92399f64c (diff) | |
download | chrome-ec-06f584a8b508e881680c222498702f5148330a3f.tar.gz |
bmi260: move BMI260 init file into .init.rom section
Increases Volteer RO and RW flash spaces by 7088 bytes each. This is the
net gain after including the init_rom layer.
BUG=b:160330682
BRANCH=none
TEST=make buildall
TEST=On volteer run "ectool motionsense" and "ectool motionsense
lid_angle". Verify both RO and RW images.
TEST=Program RO image with predecessor CL:2311268. Program this CL into
AP firmware image and verify EC software sync updates to RW image.
TEST=Verify BMI260 operation with CONFIG_CHIP_INIT_ROM_REGION disabled
using volteer_tcpmv1 board.
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I6849b6c9e96756266528b39ab5e53268dce2a13c
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2311756
Reviewed-by: Jett Rink <jettrink@chromium.org>
Reviewed-by: caveh jalali <caveh@chromium.org>
Diffstat (limited to 'board/volteer')
-rw-r--r-- | board/volteer/board.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/board/volteer/board.h b/board/volteer/board.h index cc90e36fd5..be4e10e78f 100644 --- a/board/volteer/board.h +++ b/board/volteer/board.h @@ -17,6 +17,13 @@ /* Enable the required TCPMv1 options */ #define CONFIG_USB_PD_TCPMV1 + +/* + * Because the TPCMv1 stack has considerably smaller flash footprint, disable + * the CONFIG_CHIP_INIT_ROM_REGION for testing of the init_rom API and the + * BMI260 driver. + */ +#undef CONFIG_CHIP_INIT_ROM_REGION #endif /* Optional features */ @@ -45,7 +52,6 @@ /* BMI260 accel/gyro in base */ #define CONFIG_ACCELGYRO_BMI260 -#define CONFIG_ACCELGYRO_BMI160_COMPRESSED_CONFIG #define CONFIG_ACCELGYRO_BMI260_INT_EVENT \ TASK_EVENT_MOTION_SENSOR_INTERRUPT(BASE_ACCEL) |