Skip to content

Commit 24d8599

Browse files
committed
imxrt: modify hal_init to no longer override clk frequency and respect CONFIG_SERIAL_CLK_FREQ
1 parent 0462e0a commit 24d8599

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hal/imx_rt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ static int RAMFUNCTION hal_flash_init(void)
875875
g_bootloaderTree = (bootloader_api_entry_t *)*(uint32_t *)0x0020001c;
876876
#ifdef USE_GET_CONFIG
877877
memset(&flexspi_cfg_option, 0, sizeof(flexspi_cfg_option));
878-
flexspi_cfg_option.option0.U = 0xC0000007; /* QuadSPI-NOR, f = default */
878+
flexspi_cfg_option.option0.U = 0xC0000000 | CONFIG_SERIAL_CLK_FREQ; /* QuadSPI-NOR */
879879
/**
880880
* Disable interrupts before accessing flash when using XIP
881881
* (note 4 p.279 in i.MX RT1060 Processor Reference Manual, Rev. 3, 07/2021)

0 commit comments

Comments
 (0)