summaryrefslogtreecommitdiff
path: root/chip/it83xx/flash.c
diff options
context:
space:
mode:
authorDino Li <Dino.Li@ite.com.tw>2017-11-29 18:00:22 +0800
committerchrome-bot <chrome-bot@chromium.org>2017-11-30 07:09:47 -0800
commit0b1cea4aff91cae69e062cc024632715695087a5 (patch)
tree9f6044ba6cd62ac7bc4417d06d28298ce5c9a9c6 /chip/it83xx/flash.c
parent72162f73bfcc9a63445126df83794e5e298f2810 (diff)
downloadchrome-ec-0b1cea4aff91cae69e062cc024632715695087a5.tar.gz
nds32: enable GCC LTO
- We have more flash space to use with nds32 toolchain GCC6.3.0, so we enable a few console commands that were disabled previously. And we also enable LTO to reduce the size of FW image. - Put "__wait_evt" function into ram_code section to fill the gap of flash and improving performance of code-fetch. BUG=none BRANCH=none TEST=boot to kernel on reef_it8320. Change-Id: I3b745ff80a57ef1163794864c39c22f7e1f86634 Signed-off-by: Dino Li <Dino.Li@ite.com.tw> Reviewed-on: https://chromium-review.googlesource.com/788712 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'chip/it83xx/flash.c')
-rw-r--r--chip/it83xx/flash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/it83xx/flash.c b/chip/it83xx/flash.c
index c450815420..40fa0d1925 100644
--- a/chip/it83xx/flash.c
+++ b/chip/it83xx/flash.c
@@ -6,6 +6,7 @@
#include "common.h"
#include "console.h"
#include "flash.h"
+#include "flash_chip.h"
#include "host_command.h"
#include "system.h"
#include "util.h"
@@ -15,7 +16,6 @@
#include "shared_mem.h"
#include "uart.h"
-const char __flash_dma_start;
#define FLASH_DMA_START ((uint32_t) &__flash_dma_start)
#define FLASH_DMA_CODE __attribute__((section(".flash_direct_map")))