summaryrefslogtreecommitdiff
path: root/chip/lm4
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2012-03-22 20:36:10 -0700
committerVincent Palatin <vpalatin@chromium.org>2012-04-10 00:31:17 +0000
commitd8541f29c8304ac7f6af98e63deb1d828dd57784 (patch)
treec448241c817b7b99bca9ad30fcbda8baf16e5db1 /chip/lm4
parent1e35906acd37fd1e04e792c10feb844efb835b7d (diff)
downloadchrome-ec-d8541f29c8304ac7f6af98e63deb1d828dd57784.tar.gz
use the full 256kB for partitions
Now Link has 256kB parts, we can restore the third partition and use 80kB partitions. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BUG=None TEST=on Link proto-1, try to use RO/A/B images (sysjump B, then boot). Change-Id: I9b7e4cae1504e86a62643db4d035cc9f3de0af52 (cherry picked from commit cefaf59328e4b91308d0347cc1f55861e93db480)
Diffstat (limited to 'chip/lm4')
-rw-r--r--chip/lm4/config.h6
-rw-r--r--chip/lm4/openocd/lm4x_cmds.tcl5
2 files changed, 3 insertions, 8 deletions
diff --git a/chip/lm4/config.h b/chip/lm4/config.h
index 8b953fcbc3..1891abf7bd 100644
--- a/chip/lm4/config.h
+++ b/chip/lm4/config.h
@@ -16,12 +16,8 @@
#define CONFIG_RAM_BASE 0x20000000
#define CONFIG_RAM_SIZE 0x00008000
-/* Disable RW.B firmware due to code size.
- * TODO: Add it back when we can. */
-#define CONFIG_NO_RW_B
-
/* Size of one firmware image in flash */
-#define CONFIG_FW_IMAGE_SIZE (60 * 1024)
+#define CONFIG_FW_IMAGE_SIZE (80 * 1024)
#define CONFIG_FW_RO_OFF 0
#define CONFIG_FW_A_OFF CONFIG_FW_IMAGE_SIZE
#define CONFIG_FW_B_OFF (2 * CONFIG_FW_IMAGE_SIZE)
diff --git a/chip/lm4/openocd/lm4x_cmds.tcl b/chip/lm4/openocd/lm4x_cmds.tcl
index 29dacffd80..b0b1a78ca1 100644
--- a/chip/lm4/openocd/lm4x_cmds.tcl
+++ b/chip/lm4/openocd/lm4x_cmds.tcl
@@ -17,10 +17,9 @@ proc flash_lm4 {path size} {
reset
}
-# Link proto0 has 128KB flash; proto1+ will likely have 256KB, in which
-# case this'll need changing.
+# Link proto0 has 128KB flash; proto1+ have 256KB
proc flash_link { } {
- flash_lm4 ../../../build/link/ec.bin 131072
+ flash_lm4 ../../../build/link/ec.bin 262144
}
proc flash_bds { } {