summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/servo_v4/board.h12
-rw-r--r--extra/usb_updater/servo_v4.json3
2 files changed, 13 insertions, 2 deletions
diff --git a/board/servo_v4/board.h b/board/servo_v4/board.h
index 24cff51544..1480583af6 100644
--- a/board/servo_v4/board.h
+++ b/board/servo_v4/board.h
@@ -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
diff --git a/extra/usb_updater/servo_v4.json b/extra/usb_updater/servo_v4.json
index 0167fa1cb4..d85949aec4 100644
--- a/extra/usb_updater/servo_v4.json
+++ b/extra/usb_updater/servo_v4.json
@@ -8,7 +8,6 @@
"Comment on region format": "name: [baseoffset, length]",
"regions": {
"RW": ["0x10000", "0x10000"],
- "PSTATE": ["0xf000", "0x1000"],
- "RO": ["0x0000", "0xf000"]
+ "RO": ["0x0000", "0x10000"]
}
}