From d8541f29c8304ac7f6af98e63deb1d828dd57784 Mon Sep 17 00:00:00 2001 From: Vincent Palatin Date: Thu, 22 Mar 2012 20:36:10 -0700 Subject: [PATCH] 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 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) --- chip/lm4/config.h | 6 +----- chip/lm4/openocd/lm4x_cmds.tcl | 5 ++--- 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 { } {