1 /* 2 * Copyright 2017-2021 NXP 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef __MFLASH_DRV_H__ 8 #define __MFLASH_DRV_H__ 9 10 #include "mflash_common.h" 11 12 /* Flash constants */ 13 #ifndef MFLASH_SECTOR_SIZE 14 #define MFLASH_SECTOR_SIZE (4096U) 15 #endif 16 17 #ifndef MFLASH_PAGE_SIZE 18 #define MFLASH_PAGE_SIZE (256U) 19 #endif 20 21 /* Device specific settings */ 22 #ifndef MFLASH_FLEXSPI 23 #define MFLASH_FLEXSPI (FLEXSPI0) 24 #endif 25 #ifndef MFLASH_FLEXSPI_ROOTCLK_HZ 26 #define MFLASH_FLEXSPI_ROOTCLK_HZ (198000000U) 27 #endif 28 29 #ifndef MFLASH_BASE_ADDRESS 30 #define MFLASH_BASE_ADDRESS (FlexSPI0_AMBA_BASE) 31 #endif 32 33 #define FLASH_SIZE 0x00010000U /* 64MB in KB unit */ 34 35 #endif 36