Skip to content

Commit 802ef27

Browse files
d3v1c3nv11dpgeorge
authored andcommitted
mimxrt/hal: Allow readSampleClkSrc to be configured by a board.
Via the MICROPY_HW_FLASH_DQS flag.
1 parent 3f16719 commit 802ef27

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ports/mimxrt/hal/qspi_nor_flash_config.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,16 @@ __attribute__((section(".boot_hdr.conf")))
2424
#pragma location = ".boot_hdr.conf"
2525
#endif
2626

27+
#ifndef MICROPY_HW_FLASH_DQS
28+
#define MICROPY_HW_FLASH_DQS kFlexSPIReadSampleClk_LoopbackFromDqsPad
29+
#endif
30+
2731
const flexspi_nor_config_t qspiflash_config = {
2832
.memConfig =
2933
{
3034
.tag = FLEXSPI_CFG_BLK_TAG,
3135
.version = FLEXSPI_CFG_BLK_VERSION,
32-
.readSampleClkSrc = kFlexSPIReadSampleClk_LoopbackFromDqsPad,
36+
.readSampleClkSrc = MICROPY_HW_FLASH_DQS,
3337
.csHoldTime = 3u,
3438
.csSetupTime = 3u,
3539
.busyOffset = FLASH_BUSY_STATUS_OFFSET, // Status bit 0 indicates busy.

0 commit comments

Comments
 (0)