File tree Expand file tree Collapse file tree 3 files changed +0
-28
lines changed Expand file tree Collapse file tree 3 files changed +0
-28
lines changed Original file line number Diff line number Diff line change 52
52
};
53
53
54
54
soc {
55
- mpu: mpu@4000d000 {
56
- compatible = "nxp,k22f-mpu";
57
- reg = <0x4000d000 0x824>;
58
-
59
- status = "disabled";
60
- };
61
-
62
55
mcg: clock-controller@40064000 {
63
56
compatible = "nxp,kinetis-mcg";
64
57
reg = <0x40064000 0xd>;
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ config SOC_SERIES_KINETIS_K2X
13
13
select CPU_CORTEX_M4
14
14
select CPU_CORTEX_M_HAS_DWT
15
15
select SOC_FAMILY_KINETIS
16
- select CPU_HAS_NXP_MPU
17
16
select CLOCK_CONTROL
18
17
help
19
18
Enable support for Kinetis K2x MCU series
Original file line number Diff line number Diff line change @@ -123,33 +123,13 @@ static int fsl_frdm_k22f_init(const struct device *arg)
123
123
ARG_UNUSED (arg );
124
124
125
125
unsigned int oldLevel ; /* old interrupt lock level */
126
- #if !defined(CONFIG_ARM_MPU )
127
- #if defined(SYSMPU )
128
- uint32_t temp_reg ;
129
- #endif
130
- #endif /* !CONFIG_ARM_MPU */
131
126
132
127
/* disable interrupts */
133
128
oldLevel = irq_lock ();
134
129
135
130
/* release I/O power hold to allow normal run state */
136
131
PMC -> REGSC |= PMC_REGSC_ACKISO_MASK ;
137
132
138
- #if !defined(CONFIG_ARM_MPU )
139
- /*
140
- * Disable memory protection and clear slave port errors.
141
- * Note that the K22F does not implement the optional ARMv7-M memory
142
- * protection unit (MPU), specified by the architecture (PMSAv7), in the
143
- * Cortex-M4 core. Instead, the processor includes its own MPU module.
144
- */
145
- #if defined(SYSMPU )
146
- temp_reg = SYSMPU -> CESR ;
147
- temp_reg &= ~SYSMPU_CESR_VLD_MASK ;
148
- temp_reg |= SYSMPU_CESR_SPERR_MASK ;
149
- SYSMPU -> CESR = temp_reg ;
150
- #endif
151
- #endif /* !CONFIG_ARM_MPU */
152
-
153
133
/* Initialize PLL/system clock to 120 MHz */
154
134
clock_init ();
155
135
You can’t perform that action at this time.
0 commit comments