mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-27 18:25:05 +00:00
servo_v4: Remove PSTATE to create more space in RO
When including USB PD support, the image won't fit in the default RO size of 0xf000, but does fit in the 0x10000 RW. This change removes PSTATE and increases the RO to 0x10000. BRANCH=none BUG=chrome-os-partner:61170 TEST=manual Verfied the image still builds and can run after updating via util/flash_ec and via /usb_updater/fw_update.py -b servo_v4.json Change-Id: I8f60bb1f107060e26390e6c8292a3add58703c0d Signed-off-by: Scott <scollyer@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/422450 Commit-Ready: Scott Collyer <scollyer@chromium.org> Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Shawn N <shawnn@chromium.org>
This commit is contained in:
@@ -68,6 +68,18 @@
|
||||
#define CONFIG_I2C_MASTER
|
||||
#define I2C_PORT_MASTER 1
|
||||
|
||||
/*
|
||||
* Create 0x1000 more space in RO so that the build with USB PD will fit.
|
||||
* TODO(crosbug.com/p/61170): This fix works currently, but as more PD
|
||||
* options are included, the image will no longer fit in the 0x10000 space
|
||||
* that's allocated.
|
||||
*/
|
||||
#undef CONFIG_FLASH_PSTATE
|
||||
#undef CONFIG_FLASH_PSTATE_BANK
|
||||
#undef CONFIG_FW_PSTATE_SIZE
|
||||
#define CONFIG_FW_PSTATE_SIZE 0
|
||||
|
||||
|
||||
/* PD features */
|
||||
#define CONFIG_ADC
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
"Comment on region format": "name: [baseoffset, length]",
|
||||
"regions": {
|
||||
"RW": ["0x10000", "0x10000"],
|
||||
"PSTATE": ["0xf000", "0x1000"],
|
||||
"RO": ["0x0000", "0xf000"]
|
||||
"RO": ["0x0000", "0x10000"]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user