diff options
author | Keith Short <keithshort@chromium.org> | 2021-01-26 17:56:17 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-27 23:19:25 +0000 |
commit | ca4e4647d0b51587ebf86b020b966c402d619f56 (patch) | |
tree | 507aca4899e9e9fce01490933d75fc6026e8733e /board/c2d2 | |
parent | e2f756a76e4f867949489c3e39d5c80a25432394 (diff) | |
download | chrome-ec-ca4e4647d0b51587ebf86b020b966c402d619f56.tar.gz |
common: Add attribute to store const data in .data
On EC chips that support CONFIG_CHIP_DATA_IN_INIT_ROM, the code
execution RAM is smaller than flash, leaving some flash unused.
The CONFIG_CHIP_DATA_IN_INIT_ROM moves the .data section into the unused
flash area, where it is copied directly into data RAM at startup.
Add a new attribute __const_data that allows constant data objects to
link into the .data section instead of .rodata.
This saves 1600 bytes of RO and RW flash space on boards that enable
CONFIG_CHIP_DATA_IN_INIT_ROM.
delbin_npcx796fc
eldrid_npcx796fc
halvor
lindar
lingcod
magolor_legacy
malefor
metaknight_legacy
terrador
todor
trondo
voema
volteer_apmodeentry
volteer
waddledoo
BUG=none
BRANCH=none
TEST=make buildall
TEST=boot Volteer and verify USB-PD operation
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: Ibb97a499442bbab8185b1d07f8867a7af1e793f4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2651208
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'board/c2d2')
0 files changed, 0 insertions, 0 deletions