-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
driver: flash: npcx: introduce npcx flash driver
This CL attempts to implement npcx's flash driver instead of the original one (npcx spi driver plus spi_nor flash driver). Signed-off-by: Mulin Chao <mlchao@nuvoton.com>
- Loading branch information
Showing
24 changed files
with
1,244 additions
and
251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# NPCX Flash driver configuration options | ||
|
||
# Copyright (c) 2023 Nuvoton Technology Corporation. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config FLASH_NPCX_FIU_QSPI | ||
bool "Nuvoton NPCX QSPI Bus Flash driver" | ||
default y | ||
depends on DT_HAS_NUVOTON_NPCX_FIU_QSPI_ENABLED | ||
help | ||
This option enables the QSPI Bus Flash driver for NPCX family of | ||
processors. | ||
|
||
config FLASH_NPCX_FIU_NOR | ||
bool "Nuvoton NPCX embedded controller (EC) QSPI NOR Flash driver" | ||
default y | ||
depends on DT_HAS_NUVOTON_NPCX_FIU_NOR_ENABLED | ||
depends on FLASH_NPCX_FIU_QSPI | ||
select FLASH_HAS_DRIVER_ENABLED | ||
select FLASH_HAS_PAGE_LAYOUT | ||
select FLASH_JESD216 | ||
select FLASH_HAS_EX_OP | ||
help | ||
This option enables the QSPI NOR Flash driver for NPCX family of | ||
processors. | ||
|
||
config FLASH_NPCX_FIU_NOR_INIT | ||
bool "QSPI NOR flash feature during driver initialization" | ||
default y | ||
depends on FLASH_NPCX_FIU_NOR | ||
help | ||
This option enables the QSPI NOR Flash features such as Quad-Enable, | ||
4-byte address support and so on during driver initialization. Disable | ||
it if QSPI NOR devices are not ready during driver initialization. |
Oops, something went wrong.