Skip to content

Commit 34f5e7c

Browse files
committed
drivers/flash: it51xxx: Add the M1K flash driver
The flash M1K driver supports read (up to 1K), write (1K), and erase (4K) operations, which can be accessed via DLM. Accessible flash regions include internal e-Flash or external SPI flash via FSCE# or FSCE1#. Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
1 parent 3f88026 commit 34f5e7c

File tree

7 files changed

+521
-0
lines changed

7 files changed

+521
-0
lines changed

drivers/flash/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ zephyr_library_sources_ifdef(CONFIG_SOC_FLASH_CC13XX_CC26XX soc_flash_cc13xx_cc2
4949
zephyr_library_sources_ifdef(CONFIG_SOC_FLASH_CC23X0 soc_flash_cc23x0.c)
5050
zephyr_library_sources_ifdef(CONFIG_SOC_FLASH_ESP32 flash_esp32.c)
5151
zephyr_library_sources_ifdef(CONFIG_SOC_FLASH_GECKO flash_gecko.c)
52+
zephyr_library_sources_ifdef(CONFIG_SOC_FLASH_ITE_IT51XXX_M1K flash_ite_it51xxx_m1k.c)
5253
zephyr_library_sources_ifdef(CONFIG_SOC_FLASH_ITE_IT8XXX2 flash_ite_it8xxx2.c)
5354
zephyr_library_sources_ifdef(CONFIG_SOC_FLASH_LPC soc_flash_lpc.c)
5455
zephyr_library_sources_ifdef(CONFIG_SOC_FLASH_MAX32 flash_max32.c)

drivers/flash/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ source "drivers/flash/Kconfig.esp32"
176176
source "drivers/flash/Kconfig.gd32"
177177
source "drivers/flash/Kconfig.gecko"
178178
source "drivers/flash/Kconfig.ifx_cat1"
179+
source "drivers/flash/Kconfig.it51xxx_m1k"
179180
source "drivers/flash/Kconfig.it8xxx2"
180181
source "drivers/flash/Kconfig.lpc"
181182
source "drivers/flash/Kconfig.max32"

drivers/flash/Kconfig.it51xxx_m1k

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright (c) 2025 ITE Corporation. All Rights Reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config SOC_FLASH_ITE_IT51XXX_M1K
5+
bool "ITE IT51XXX manual flash 1k driver"
6+
default y
7+
depends on DT_HAS_ITE_IT51XXX_MANUAL_FLASH_1K_ENABLED
8+
select FLASH_HAS_PAGE_LAYOUT
9+
select FLASH_HAS_DRIVER_ENABLED
10+
select PINCTRL
11+
help
12+
The flash M1K driver supports read (up to 1K), write (1K), and erase (4K)
13+
operations. Accessible flash regions include internal e-Flash or external
14+
SPI flash via FSCE# or FSCE1#

0 commit comments

Comments
 (0)