]>
Commit | Line | Data |
---|---|---|
1 | #include "flash.h" | |
2 | #include "flash_confs.h" | |
3 | static const flash_configs configs[] = { | |
4 | { .config = { | |
5 | .memConfig = { | |
6 | .tag = FLEXSPI_CFG_BLK_TAG, | |
7 | .version = FLEXSPI_CFG_BLK_VERSION, | |
8 | .readSampleClkSrc = kFlexSPIReadSampleClk_LoopbackFromDqsPad, | |
9 | .csHoldTime = 3u, | |
10 | .csSetupTime = 3u, | |
11 | .sflashPadType = kSerialFlash_4Pads, | |
12 | .serialClkFreq = kFlexSpiSerialClk_100MHz, | |
13 | .sflashA1Size = 8u * 1024u * 1024u, | |
14 | .lookupTable = { | |
15 | // Read LUTs | |
16 | FLEXSPI_LUT_SEQ(CMD_SDR, FLEXSPI_1PAD, 0xEB, RADDR_SDR, FLEXSPI_4PAD, 0x18), | |
17 | FLEXSPI_LUT_SEQ(DUMMY_SDR, FLEXSPI_4PAD, 0x06, READ_SDR, FLEXSPI_4PAD, 0x04), | |
18 | }, | |
19 | }, | |
20 | .pageSize = 256u, | |
21 | .sectorSize = 4u * 1024u, | |
22 | .blockSize = 64u * 1024u, | |
23 | .isUniformBlockSize = false, | |
24 | }, .name = "imxrt1060" }, | |
25 | {} | |
26 | }; | |
27 | ||
28 | const flash_configs * get_flash_confs(){ | |
29 | return configs; | |
30 | } |