1 /* 2 * Copyright (c) 2023 Nuvoton Technology Corporation. 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 #ifndef ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_NPCK_FIU_QSPI_H_ 7 #define ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_NPCK_FIU_QSPI_H_ 8 9 #include <zephyr/dt-bindings/dt-util.h> 10 11 /* Software controlled Chip-Select number for UMA transactions */ 12 #define NPCX_QSPI_SW_CS0 BIT(0) 13 #define NPCX_QSPI_SW_CS1 BIT(1) 14 #define NPCX_QSPI_SW_CS2 BIT(2) 15 #define NPCX_QSPI_SW_CS_MASK (NPCX_QSPI_SW_CS0 | NPCX_QSPI_SW_CS1 | NPCX_QSPI_SW_CS2) 16 17 /* Supported flash interfaces for UMA transactions */ 18 #define NPCX_QSPI_SEC_FLASH_SL BIT(4) 19 20 /* Supported read mode for Direct Read Access */ 21 #define NPCX_RD_MODE_NORMAL 0 22 #define NPCX_RD_MODE_FAST 1 23 #define NPCX_RD_MODE_FAST_DUAL 3 24 25 #endif /* ZEPHYR_INCLUDE_DT_BINDINGS_CLOCK_NPCK_FIU_QSPI_H_ */ 26