File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
peripherals/mimxrt10xx/MIMXRT1011 Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ STATIC void config_periph_pin(const mcu_periph_obj_t *periph) {
58
58
| IOMUXC_SW_PAD_CTL_PAD_SRE (0 ));
59
59
}
60
60
61
- #define LPSPI_MASTER_CLK_FREQ (CLOCK_GetFreq(kCLOCK_Usb1PllPfd0Clk) / (CLOCK_GetDiv(kCLOCK_LpspiDiv)))
61
+ #define LPSPI_MASTER_CLK_FREQ (CLOCK_GetFreq(kCLOCK_Usb1PllPfd0Clk) / (CLOCK_GetDiv(kCLOCK_LpspiDiv) + 1 ))
62
62
63
63
void spi_reset (void ) {
64
64
for (int i = 0 ; i < MAX_SPI ; i ++ ) {
Original file line number Diff line number Diff line change 55
55
#define BOARD_BOOTCLOCKRUN_GPT2_IPG_CLK_HIGHFREQ 62500000UL
56
56
#define BOARD_BOOTCLOCKRUN_IPG_CLK_ROOT 125000000UL
57
57
#define BOARD_BOOTCLOCKRUN_LPI2C_CLK_ROOT 60000000UL
58
- #define BOARD_BOOTCLOCKRUN_LPSPI_CLK_ROOT 105600000UL
58
+ #define BOARD_BOOTCLOCKRUN_LPSPI_CLK_ROOT 130900000UL
59
59
#define BOARD_BOOTCLOCKRUN_MQS_MCLK 63529411UL
60
60
#define BOARD_BOOTCLOCKRUN_PERCLK_CLK_ROOT 62500000UL
61
61
#define BOARD_BOOTCLOCKRUN_SAI1_CLK_ROOT 63529411UL
@@ -137,7 +137,7 @@ void clocks_init(void) {
137
137
CLOCK_DisableClock (kCLOCK_Lpspi1 );
138
138
CLOCK_DisableClock (kCLOCK_Lpspi2 );
139
139
/* Set LPSPI_PODF. */
140
- CLOCK_SetDiv (kCLOCK_LpspiDiv , 7 );
140
+ CLOCK_SetDiv (kCLOCK_LpspiDiv , 2 );
141
141
/* Set Lpspi clock source. */
142
142
CLOCK_SetMux (kCLOCK_LpspiMux , 1 );
143
143
/* Disable TRACE clock gate. */
You can’t perform that action at this time.
0 commit comments