Преглед на файлове

Fix FlexSPI2 speed setting, default to 88 MHz clock

main
PaulStoffregen преди 4 години
родител
ревизия
1889c06e56
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. +2
    -2
      teensy4/startup.c

+ 2
- 2
teensy4/startup.c Целия файл

@@ -333,8 +333,8 @@ FLASHMEM void configure_external_ram()
IOMUXC_FLEXSPI2_IPP_IND_SCK_FA_SELECT_INPUT = 1; // GPIO_EMC_25 for Mode: ALT8

// turn on clock (TODO: increase clock speed later, slow & cautious for first release)
CCM_CBCMR = (CCM_CBCMR & (CCM_CBCMR_FLEXSPI2_PODF_MASK | CCM_CBCMR_FLEXSPI2_CLK_SEL_MASK))
| CCM_CBCMR_FLEXSPI2_PODF(7) | CCM_CBCMR_FLEXSPI2_CLK_SEL(0); // 49.5 MHz
CCM_CBCMR = (CCM_CBCMR & ~(CCM_CBCMR_FLEXSPI2_PODF_MASK | CCM_CBCMR_FLEXSPI2_CLK_SEL_MASK))
| CCM_CBCMR_FLEXSPI2_PODF(5) | CCM_CBCMR_FLEXSPI2_CLK_SEL(3); // 88 MHz
CCM_CCGR7 |= CCM_CCGR7_FLEXSPI2(CCM_CCGR_ON);

FLEXSPI2_MCR0 |= FLEXSPI_MCR0_MDIS;

Loading…
Отказ
Запис