summaryrefslogtreecommitdiff
path: root/chip/npcx/config_chip.h
diff options
context:
space:
mode:
authorShawn Nematbakhsh <shawnn@chromium.org>2016-05-06 14:58:59 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-05-10 09:34:45 -0700
commitb8154d02467b7f36475ba9e6e8b4d8e3ccc5b590 (patch)
treecf0a9dd06f9ae5e073e27d1b28b5328fb9760438 /chip/npcx/config_chip.h
parent65bca9b9fdd797c1a659718f08b4eaa3d7de41ce (diff)
downloadchrome-ec-b8154d02467b7f36475ba9e6e8b4d8e3ccc5b590.tar.gz
kevin: Move RAM from data section to code
Kevin is code space constrained, so use RAM normally used for data instead for code. BUG=chrome-os-partner:52876 BRANCH=None TEST=Verify free code RAM becomes 5732 bytes (was 1636) and free data RAM becomes 3072 bytes (was 7168 bytes) (measured with pending changes to add sensor task). Also, verify kevin continues to boot + power sequence. Change-Id: Ia6470a76f95e87d6cda1bf7273deaab6344f8ee9 Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/343191 Commit-Ready: Wonjoon Lee <woojoo.lee@samsung.com> Tested-by: Shawn N <shawnn@chromium.org> Reviewed-by: Mary Ruthven <mruthven@chromium.org>
Diffstat (limited to 'chip/npcx/config_chip.h')
-rw-r--r--chip/npcx/config_chip.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/chip/npcx/config_chip.h b/chip/npcx/config_chip.h
index 39cdf9ef51..ff5264ec75 100644
--- a/chip/npcx/config_chip.h
+++ b/chip/npcx/config_chip.h
@@ -50,12 +50,12 @@
/* Use chip variant to specify the size and start address of program memory */
#if defined(CHIP_VARIANT_NPCX5M5G)
/* 96KB RAM for FW code */
-#define CONFIG_PROGRAM_MEMORY_SIZE (96 * 1024)
+#define NPCX_PROGRAM_MEMORY_SIZE (96 * 1024)
/* program memory base address for 128KB RAM */
#define CONFIG_PROGRAM_MEMORY_BASE 0x100A8000
#elif defined(CHIP_VARIANT_NPCX5M6G)
/* 224KB RAM for FW code */
-#define CONFIG_PROGRAM_MEMORY_SIZE (224 * 1024)
+#define NPCX_PROGRAM_MEMORY_SIZE (224 * 1024)
/* program memory base address for 256KB RAM */
#define CONFIG_PROGRAM_MEMORY_BASE 0x10088000
#else