]> Git Repo - imx_flashconf.git/blame - flash_confs.c
error checking
[imx_flashconf.git] / flash_confs.c
CommitLineData
a94e8ba6
JT
1// SPDX-License-Identifier: BSD-3-Clause
2/*
3 * Copyright 2018-2020 NXP
4 * All rights reserved.
5 */
6
7#include "flash-defs.h"
fabb3b08
JT
8#include "flash_confs.h"
9static 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
34const flash_configs * get_flash_confs(){
35 return configs;
36}
This page took 0.028044 seconds and 5 git commands to generate.