ite: drivers/flash: add flash driver for it8xxx2
Add flash driver for it8xxx2. The driver can implement flash read, write and erase that will be mapped to the ram section for executing. TEST="flash write 0x80000 0x10 0x20 0x30 0x40 ..." "flash read 0x80000 0x100" "flash erase 0x80000 0x1000" Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
This commit is contained in:
parent
ab3a207baf
commit
ef3c8507a6
8 changed files with 673 additions and 4 deletions
|
@ -140,6 +140,14 @@ SECTIONS
|
|||
*(".text.*")
|
||||
*(.gnu.linkonce.t.*)
|
||||
#include <linker/kobject-text.ld>
|
||||
#ifdef CONFIG_SOC_FLASH_RAMCODE_SECTION
|
||||
. = ALIGN(0x1000);
|
||||
_ram_code_start = .;
|
||||
KEEP(*(.__ram_code))
|
||||
__ram_code_size = . - _ram_code_start;
|
||||
ASSERT((__ram_code_size <= 0x1000),
|
||||
"__ram_code_size <= 4k bytes");
|
||||
#endif
|
||||
} GROUP_LINK_IN(ROMABLE_REGION)
|
||||
|
||||
_image_text_end = .;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue