1 /* 2 * Copyright 2017-2020 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 (0x1000) 15 #endif 16 17 #ifndef MFLASH_PAGE_SIZE 18 #define MFLASH_PAGE_SIZE (256) 19 #endif 20 21 #ifndef MFLASH_FLEXSPI 22 #define MFLASH_FLEXSPI (FLEXSPI) 23 #endif 24 25 #ifndef MFLASH_BASE_ADDRESS 26 #define MFLASH_BASE_ADDRESS (FlexSPI_AMBA_BASE) 27 #endif 28 29 #endif 30