]> Git Repo - imx_flashconf.git/blob - flash_confs.c
1d483a188ebf09bc2f70f5c7394f7f6fb565e472
[imx_flashconf.git] / flash_confs.c
1 // SPDX-License-Identifier: BSD-3-Clause
2 /*
3  * Copyright 2018-2020 NXP
4  * All rights reserved.
5  */
6
7 #include "flash-defs.h"
8 #include "flash_confs.h"
9 static const flash_configs configs[] = {
10         { .config = {
11                 .memConfig = {
12                         .tag              = FLEXSPI_CFG_BLK_TAG,
13                         .version          = FLEXSPI_CFG_BLK_VERSION,
14                         .readSampleClkSrc = kFlexSPIReadSampleClk_LoopbackFromDqsPad,
15                         .csHoldTime       = 3u,
16                         .csSetupTime      = 3u,
17                         .sflashPadType    = kSerialFlash_4Pads,
18                         .serialClkFreq    = kFlexSpiSerialClk_100MHz,
19                         .sflashA1Size     = 8u * 1024u * 1024u,
20                         .lookupTable = {
21                                 // Read LUTs
22                                 FLEXSPI_LUT_SEQ(CMD_SDR, FLEXSPI_1PAD, 0xEB, RADDR_SDR, FLEXSPI_4PAD, 0x18),
23                                 FLEXSPI_LUT_SEQ(DUMMY_SDR, FLEXSPI_4PAD, 0x06, READ_SDR, FLEXSPI_4PAD, 0x04),
24                         },
25                 },
26                 .pageSize           = 256u,
27                 .sectorSize         = 4u * 1024u,
28                 .blockSize          = 64u * 1024u,
29                 .isUniformBlockSize = false,
30         }, .name = "imxrt1060" },
31         {}
32 };
33
34 const flash_configs * get_flash_confs(){
35         return configs;
36 }
This page took 0.023589 seconds and 4 git commands to generate.