2020-12-25 18:23:44 +08:00
|
|
|
# FLASH configuration options
|
|
|
|
|
|
|
|
# Copyright (c) 2021 ITE Corporation. All Rights Reserved.
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
config SOC_FLASH_ITE_IT8XXX2
|
|
|
|
bool "ITE IT8XXX2 flash driver"
|
2022-07-22 14:53:16 +08:00
|
|
|
default y
|
|
|
|
depends on DT_HAS_ITE_IT8XXX2_FLASH_CONTROLLER_ENABLED
|
2020-12-25 18:23:44 +08:00
|
|
|
select SOC_FLASH_RAMCODE_SECTION
|
|
|
|
help
|
|
|
|
The flash driver includes support for read, write and
|
|
|
|
erase flash operations. It also supports protection.
|
|
|
|
The it8xxx2 flash size is 1M byte.
|
|
|
|
|
|
|
|
config SOC_FLASH_RAMCODE_SECTION
|
|
|
|
bool
|
2022-07-22 14:53:16 +08:00
|
|
|
depends on SOC_FLASH_ITE_IT8XXX2
|
2020-12-25 18:23:44 +08:00
|
|
|
help
|
|
|
|
Enable this config to map the __ram_code section
|
|
|
|
operations of flash(flash_it8xxx2_erase,
|
|
|
|
flash_it8xxx2_write, flash_it8xxx2_read) to RAM.
|