File tree Expand file tree Collapse file tree
Libraries/zephyr/MAX/Source Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919#include "max32660.h"
2020#include "mxc_sys.h"
2121#include "wdt_regs.h"
22+ #include "icc.h"
2223
2324/*
2425 * This function is called during boot up.
@@ -39,4 +40,7 @@ void max32xx_system_init(void)
3940 MXC_SYS_ClockDisable (MXC_SYS_PERIPH_CLOCK_TMR1 );
4041 MXC_SYS_ClockDisable (MXC_SYS_PERIPH_CLOCK_TMR2 );
4142 MXC_SYS_ClockDisable (MXC_SYS_PERIPH_CLOCK_I2C1 );
43+
44+ /* Enable instruction caching */
45+ MXC_ICC_Enable ();
4246}
Original file line number Diff line number Diff line change 1717 ******************************************************************************/
1818
1919#include "max32662.h"
20+ #include "icc.h"
2021
2122/*
2223 * This function is called during boot up.
2324 */
24- void max32xx_system_init (void ) {}
25+ void max32xx_system_init (void )
26+ {
27+ /* Enable instruction caching */
28+ MXC_ICC_Enable ();
29+ }
Original file line number Diff line number Diff line change 2020#include "pwrseq_regs.h"
2121#include "mxc_sys.h"
2222#include "ecc_regs.h"
23+ #include "icc.h"
2324
2425/*
2526 * This function is called during boot up.
@@ -31,4 +32,7 @@ void max32xx_system_init(void)
3132
3233 /* Make sure INRO is enabled. INRO should already be enabled during power up. */
3334 MXC_PWRSEQ -> lpcn |= MXC_F_PWRSEQ_LPCN_INRO_EN ;
35+
36+ /* Enable instruction caching */
37+ MXC_ICC_Enable ();
3438}
Original file line number Diff line number Diff line change 1818
1919#include "max32672.h"
2020#include "trimsir_regs.h"
21+ #include "icc.h"
2122
2223/*
2324 * This function is called during boot up.
@@ -27,4 +28,7 @@ void max32xx_system_init(void)
2728 /* Disable SRAM ECC until it is handled on zephyr side */
2829 MXC_TRIMSIR -> bb_sir2 &= ~(MXC_F_TRIMSIR_BB_SIR2_RAM0_1ECCEN | MXC_F_TRIMSIR_BB_SIR2_RAM2ECCEN |
2930 MXC_F_TRIMSIR_BB_SIR2_RAM3ECCEN );
31+
32+ /* Enable instruction caching */
33+ MXC_ICC_Enable ();
3034}
Original file line number Diff line number Diff line change 1818
1919#include "max32675.h"
2020#include "ecc_regs.h"
21+ #include "icc.h"
2122
2223/*
2324 * This function is called during boot up.
@@ -26,4 +27,7 @@ void max32xx_system_init(void)
2627{
2728 /* Disable SRAM ECC until it is handled on zephyr side */
2829 MXC_ECC -> en &= ~MXC_F_ECC_EN_SRAM ;
30+
31+ /* Enable instruction caching */
32+ MXC_ICC_Enable ();
2933}
Original file line number Diff line number Diff line change 2424 */
2525void max32xx_system_init (void )
2626{
27+ #ifndef CONFIG_SOC_MAX78000_RV32
28+
29+ /* Enable instruction caching */
2730 MXC_ICC_Enable (MXC_ICC0 );
31+
32+ #endif
2833}
Original file line number Diff line number Diff line change 1717 ******************************************************************************/
1818
1919#include "max78002.h"
20+ #include "icc.h"
2021
2122/*
2223 * This function is called during boot up.
2324 */
24- void max32xx_system_init (void ) {}
25+ void max32xx_system_init (void )
26+ {
27+ #ifndef CONFIG_SOC_MAX78002_RV32
28+
29+ /* Enable instruction caching */
30+ MXC_ICC_Enable (MXC_ICC0 );
31+
32+ #endif
33+ }
You can’t perform that action at this time.
0 commit comments