Home
last modified time | relevance | path

Searched refs:mpu (Results 1 – 22 of 22) sorted by relevance

/trusted-firmware-m-3.6.0/platform/ext/target/arm/mps3/corstone310/an555/cmsis_drivers/
DDriver_Flash.c32 uint32_t mpu; member
56 MPU_Type* mpu, in mpu_save() argument
66 mpu_state->mpu = mpu->CTRL; in mpu_save()
68 if(mpu == MPU) { in mpu_save()
75 mpu->RNR = i; in mpu_save()
76 mpu_state->mpu_table[i].RBAR = mpu->RBAR; in mpu_save()
77 mpu_state->mpu_table[i].RLAR = mpu->RLAR; in mpu_save()
78 mpu->RBAR = 0; in mpu_save()
79 mpu->RLAR = 0; in mpu_save()
81 mpu_state->mair[0] = mpu->MAIR[0]; in mpu_save()
[all …]
/trusted-firmware-m-3.6.0/platform/ext/target/arm/mps3/corstone300/an547/cmsis_drivers/
DDriver_Flash.c32 uint32_t mpu; member
56 MPU_Type* mpu, in mpu_save() argument
66 mpu_state->mpu = mpu->CTRL; in mpu_save()
68 if(mpu == MPU) { in mpu_save()
75 mpu->RNR = i; in mpu_save()
76 mpu_state->mpu_table[i].RBAR = mpu->RBAR; in mpu_save()
77 mpu_state->mpu_table[i].RLAR = mpu->RLAR; in mpu_save()
78 mpu->RBAR = 0; in mpu_save()
79 mpu->RLAR = 0; in mpu_save()
81 mpu_state->mair[0] = mpu->MAIR[0]; in mpu_save()
[all …]
/trusted-firmware-m-3.6.0/platform/ext/target/arm/mps3/corstone300/an552/cmsis_drivers/
DDriver_Flash.c32 uint32_t mpu; member
56 MPU_Type* mpu, in mpu_save() argument
66 mpu_state->mpu = mpu->CTRL; in mpu_save()
68 if(mpu == MPU) { in mpu_save()
75 mpu->RNR = i; in mpu_save()
76 mpu_state->mpu_table[i].RBAR = mpu->RBAR; in mpu_save()
77 mpu_state->mpu_table[i].RLAR = mpu->RLAR; in mpu_save()
78 mpu->RBAR = 0; in mpu_save()
79 mpu->RLAR = 0; in mpu_save()
81 mpu_state->mair[0] = mpu->MAIR[0]; in mpu_save()
[all …]
/trusted-firmware-m-3.6.0/platform/ext/target/arm/musca_s1/Native_Driver/
Dmpu_armv8m_drv.c25 MPU_Type *mpu = (MPU_Type *)dev->base; in mpu_armv8m_enable() local
35 mpu->MAIR0 = (MPU_ARMV8M_MAIR_ATTR_DEVICE_VAL << MPU_MAIR0_Attr0_Pos) | in mpu_armv8m_enable()
39 mpu->CTRL = in mpu_armv8m_enable()
45 mpu->CTRL |= MPU_CTRL_ENABLE_Msk; in mpu_armv8m_enable()
55 MPU_Type *mpu = (MPU_Type *)dev->base; in mpu_armv8m_disable() local
58 mpu->CTRL = 0; in mpu_armv8m_disable()
68 MPU_Type *mpu = (MPU_Type *)dev->base; in mpu_armv8m_region_enable() local
83 ctrl_before = mpu->CTRL; in mpu_armv8m_region_enable()
84 mpu->CTRL = 0; in mpu_armv8m_region_enable()
86 mpu->RNR = region_cfg->region_nr & MPU_RNR_REGION_Msk; in mpu_armv8m_region_enable()
[all …]
/trusted-firmware-m-3.6.0/platform/ext/target/arm/musca_b1/Native_Driver/
Dmpu_armv8m_drv.c25 MPU_Type *mpu = (MPU_Type *)dev->base; in mpu_armv8m_enable() local
35 mpu->MAIR0 = (MPU_ARMV8M_MAIR_ATTR_DEVICE_VAL << MPU_MAIR0_Attr0_Pos) | in mpu_armv8m_enable()
39 mpu->CTRL = in mpu_armv8m_enable()
45 mpu->CTRL |= MPU_CTRL_ENABLE_Msk; in mpu_armv8m_enable()
55 MPU_Type *mpu = (MPU_Type *)dev->base; in mpu_armv8m_disable() local
58 mpu->CTRL = 0; in mpu_armv8m_disable()
68 MPU_Type *mpu = (MPU_Type *)dev->base; in mpu_armv8m_region_enable() local
83 ctrl_before = mpu->CTRL; in mpu_armv8m_region_enable()
84 mpu->CTRL = 0; in mpu_armv8m_region_enable()
86 mpu->RNR = region_cfg->region_nr & MPU_RNR_REGION_Msk; in mpu_armv8m_region_enable()
[all …]
/trusted-firmware-m-3.6.0/platform/ext/target/nuvoton/common/native_drivers/
Dmpu_armv8m_drv.c25 MPU_Type *mpu = (MPU_Type *)dev->base; in mpu_armv8m_enable() local
35 mpu->MAIR0 = (MPU_ARMV8M_MAIR_ATTR_DEVICE_VAL << MPU_MAIR0_Attr0_Pos) | in mpu_armv8m_enable()
39 mpu->CTRL = in mpu_armv8m_enable()
45 mpu->CTRL |= MPU_CTRL_ENABLE_Msk; in mpu_armv8m_enable()
55 MPU_Type *mpu = (MPU_Type *)dev->base; in mpu_armv8m_disable() local
58 mpu->CTRL = 0; in mpu_armv8m_disable()
68 MPU_Type *mpu = (MPU_Type *)dev->base; in mpu_armv8m_region_enable() local
83 ctrl_before = mpu->CTRL; in mpu_armv8m_region_enable()
84 mpu->CTRL = 0; in mpu_armv8m_region_enable()
86 mpu->RNR = region_cfg->region_nr & MPU_RNR_REGION_Msk; in mpu_armv8m_region_enable()
[all …]
/trusted-firmware-m-3.6.0/platform/ext/target/arm/mps2/an519/native_drivers/
Dmpu_armv8m_drv.c25 MPU_Type *mpu = (MPU_Type *)dev->base; in mpu_armv8m_enable() local
35 mpu->MAIR0 = (MPU_ARMV8M_MAIR_ATTR_DEVICE_VAL << MPU_MAIR0_Attr0_Pos) | in mpu_armv8m_enable()
39 mpu->CTRL = in mpu_armv8m_enable()
45 mpu->CTRL |= MPU_CTRL_ENABLE_Msk; in mpu_armv8m_enable()
55 MPU_Type *mpu = (MPU_Type *)dev->base; in mpu_armv8m_disable() local
58 mpu->CTRL = 0; in mpu_armv8m_disable()
68 MPU_Type *mpu = (MPU_Type *)dev->base; in mpu_armv8m_region_enable() local
83 ctrl_before = mpu->CTRL; in mpu_armv8m_region_enable()
84 mpu->CTRL = 0; in mpu_armv8m_region_enable()
86 mpu->RNR = region_cfg->region_nr & MPU_RNR_REGION_Msk; in mpu_armv8m_region_enable()
[all …]
/trusted-firmware-m-3.6.0/platform/ext/target/nordic_nrf/common/core/native_drivers/
Dmpu_armv8m_drv.c25 MPU_Type *mpu = (MPU_Type *)dev->base; in mpu_armv8m_enable() local
35 mpu->MAIR0 = (MPU_ARMV8M_MAIR_ATTR_DEVICE_VAL << MPU_MAIR0_Attr0_Pos) | in mpu_armv8m_enable()
39 mpu->CTRL = in mpu_armv8m_enable()
45 mpu->CTRL |= MPU_CTRL_ENABLE_Msk; in mpu_armv8m_enable()
55 MPU_Type *mpu = (MPU_Type *)dev->base; in mpu_armv8m_disable() local
58 mpu->CTRL = 0; in mpu_armv8m_disable()
68 MPU_Type *mpu = (MPU_Type *)dev->base; in mpu_armv8m_region_enable() local
84 ((mpu->TYPE & MPU_TYPE_DREGION_Msk) >> MPU_TYPE_DREGION_Pos); in mpu_armv8m_region_enable()
90 ctrl_before = mpu->CTRL; in mpu_armv8m_region_enable()
91 mpu->CTRL = 0; in mpu_armv8m_region_enable()
[all …]
/trusted-firmware-m-3.6.0/platform/ext/target/stm/common/hal/Native_Driver/
Dmpu_armv8m_drv.c25 MPU_Type *mpu = (MPU_Type *)dev->base; in mpu_armv8m_enable() local
36 mpu->MAIR0 = (MPU_ARMV8M_MAIR_ATTR_DEVICE_VAL << MPU_MAIR0_Attr0_Pos) | in mpu_armv8m_enable()
41 mpu->CTRL = in mpu_armv8m_enable()
47 mpu->CTRL |= MPU_CTRL_ENABLE_Msk; in mpu_armv8m_enable()
65 MPU_Type *mpu = (MPU_Type *)dev->base; in mpu_armv8m_check() local
90 if ((mpu->MAIR0 == mair0) && (mpu->CTRL == ctrl)) in mpu_armv8m_check()
100 MPU_Type *mpu = (MPU_Type *)dev->base; in mpu_armv8m_disable() local
103 mpu->CTRL = 0; in mpu_armv8m_disable()
113 MPU_Type *mpu = (MPU_Type *)dev->base; in mpu_armv8m_region_enable() local
129 mpu->RNR = region_cfg->region_nr & MPU_RNR_REGION_Msk; in mpu_armv8m_region_enable()
[all …]
/trusted-firmware-m-3.6.0/platform/ext/target/arm/mps2/an521/native_drivers/
Dmpu_armv8m_drv.c25 MPU_Type *mpu = (MPU_Type *)dev->base; in mpu_armv8m_enable() local
35 mpu->MAIR0 = (MPU_ARMV8M_MAIR_ATTR_DEVICE_VAL << MPU_MAIR0_Attr0_Pos) | in mpu_armv8m_enable()
39 mpu->CTRL = in mpu_armv8m_enable()
45 mpu->CTRL |= MPU_CTRL_ENABLE_Msk; in mpu_armv8m_enable()
56 MPU_Type *mpu = (MPU_Type *)dev->base; in mpu_armv8m_disable() local
59 mpu->CTRL = 0; in mpu_armv8m_disable()
68 MPU_Type *mpu = (MPU_Type *)dev->base; in mpu_armv8m_region_enable() local
82 ctrl_before = mpu->CTRL; in mpu_armv8m_region_enable()
83 mpu->CTRL = 0; in mpu_armv8m_region_enable()
85 mpu->RNR = region_cfg->region_nr & MPU_RNR_REGION_Msk; in mpu_armv8m_region_enable()
[all …]
/trusted-firmware-m-3.6.0/platform/ext/target/arm/drivers/mpu/armv8m/
Dmpu_armv8m_drv.c25 MPU_Type *mpu = (MPU_Type *)dev->base; in mpu_armv8m_enable() local
35 mpu->MAIR0 = (MPU_ARMV8M_MAIR_ATTR_DEVICE_VAL << MPU_MAIR0_Attr0_Pos) | in mpu_armv8m_enable()
39 mpu->CTRL = in mpu_armv8m_enable()
45 mpu->CTRL |= MPU_CTRL_ENABLE_Msk; in mpu_armv8m_enable()
56 MPU_Type *mpu = (MPU_Type *)dev->base; in mpu_armv8m_disable() local
59 mpu->CTRL = 0; in mpu_armv8m_disable()
68 MPU_Type *mpu = (MPU_Type *)dev->base; in mpu_armv8m_region_enable() local
82 ctrl_before = mpu->CTRL; in mpu_armv8m_region_enable()
83 mpu->CTRL = 0; in mpu_armv8m_region_enable()
85 mpu->RNR = region_cfg->region_nr & MPU_RNR_REGION_Msk; in mpu_armv8m_region_enable()
[all …]
/trusted-firmware-m-3.6.0/platform/ext/cmsis/
Dmpu_armv8.h188 __STATIC_INLINE void ARM_MPU_SetMemAttrEx(MPU_Type* mpu, uint8_t idx, uint8_t attr) in ARM_MPU_SetMemAttrEx() argument
194 if (reg >= (sizeof(mpu->MAIR) / sizeof(mpu->MAIR[0]))) { in ARM_MPU_SetMemAttrEx()
198 mpu->MAIR[reg] = ((mpu->MAIR[reg] & ~mask) | ((attr << pos) & mask)); in ARM_MPU_SetMemAttrEx()
225 __STATIC_INLINE void ARM_MPU_ClrRegionEx(MPU_Type* mpu, uint32_t rnr) in ARM_MPU_ClrRegionEx() argument
227 mpu->RNR = rnr; in ARM_MPU_ClrRegionEx()
228 mpu->RLAR = 0U; in ARM_MPU_ClrRegionEx()
255 __STATIC_INLINE void ARM_MPU_SetRegionEx(MPU_Type* mpu, uint32_t rnr, uint32_t rbar, uint32_t rlar) in ARM_MPU_SetRegionEx() argument
257 mpu->RNR = rnr; in ARM_MPU_SetRegionEx()
258 mpu->RBAR = rbar; in ARM_MPU_SetRegionEx()
259 mpu->RLAR = rlar; in ARM_MPU_SetRegionEx()
[all …]
/trusted-firmware-m-3.6.0/docs/platform/
Dplatform_introduction.rst41 …com/en/products/evaluation-tools/product-evaluation-tools/mcu-mpu-eval-tools/stm32-mcu-mpu-eval-to…
43 …com/en/products/evaluation-tools/product-evaluation-tools/mcu-mpu-eval-tools/stm32-mcu-mpu-eval-to…
/trusted-firmware-m-3.6.0/platform/ext/target/arm/mps2/an521/
Dtfm_hal_isolation.c165 MPU_Type *mpu = (MPU_Type *)dev->base; in fih_verify_mpu_armv8m_region_enabled() local
177 mpu->RNR = region_nr & MPU_RNR_REGION_Msk; in fih_verify_mpu_armv8m_region_enabled()
183 if (mpu->RBAR != base_cfg) { in fih_verify_mpu_armv8m_region_enabled()
191 if (mpu->RLAR != limit_cfg) { in fih_verify_mpu_armv8m_region_enabled()
202 MPU_Type *mpu = (MPU_Type *)dev->base; in fih_verify_mpu_armv8m_enabled() local
204 if (mpu->MAIR0 != ((MPU_ARMV8M_MAIR_ATTR_DEVICE_VAL << MPU_MAIR0_Attr0_Pos) | in fih_verify_mpu_armv8m_enabled()
210 if (mpu->CTRL != (MPU_CTRL_ENABLE_Msk | in fih_verify_mpu_armv8m_enabled()
/trusted-firmware-m-3.6.0/docs/releases/
D1.1.rst49 …com/en/products/evaluation-tools/product-evaluation-tools/mcu-mpu-eval-tools/stm32-mcu-mpu-eval-to…
52 …com/en/products/evaluation-tools/product-evaluation-tools/mcu-mpu-eval-tools/stm32-mcu-mpu-eval-to…
/trusted-firmware-m-3.6.0/platform/ext/target/arm/mps3/an524/
DCMakeLists.txt61 ${PLATFORM_DIR}/ext/target/arm/drivers/mpu/armv8m
74 ${PLATFORM_DIR}/ext/target/arm/drivers/mpu/armv8m/mpu_armv8m_drv.c
168 ${PLATFORM_DIR}/ext/target/arm/drivers/mpu/armv8m/mpu_armv8m_drv.h
/trusted-firmware-m-3.6.0/platform/ext/target/arm/rss/common/
DCMakeLists.txt117 ${PLATFORM_DIR}/ext/target/arm/drivers/mpu/armv8m
141 ${PLATFORM_DIR}/ext/target/arm/drivers/mpu/armv8m/mpu_armv8m_drv.c
336 ${PLATFORM_DIR}/ext/target/arm/drivers/mpu/armv8m/mpu_armv8m_drv.c
342 ${PLATFORM_DIR}/ext/target/arm/drivers/mpu/armv8m
616 ${PLATFORM_DIR}/ext/target/arm/drivers/mpu/armv8m/mpu_armv8m_drv.c
619 ${PLATFORM_DIR}/ext/target/arm/drivers/mpu/armv8m/mpu_armv8m_drv.h
/trusted-firmware-m-3.6.0/platform/ext/target/arm/mps3/corstone310/common/ns/
Dcommon.cmake42 ${PLATFORM_DIR}/ext/target/arm/drivers/mpu/armv8m
/trusted-firmware-m-3.6.0/platform/ext/target/arm/mps3/corstone300/common/ns/
Dcommon.cmake43 ${PLATFORM_DIR}/ext/target/arm/drivers/mpu/armv8m
/trusted-firmware-m-3.6.0/platform/ext/target/arm/mps3/corstone310/common/
Dcommon.cmake55 ${PLATFORM_DIR}/ext/target/arm/drivers/mpu/armv8m
170 ${PLATFORM_DIR}/ext/target/arm/drivers/mpu/armv8m/mpu_armv8m_drv.c
/trusted-firmware-m-3.6.0/platform/ext/target/arm/mps3/corstone300/common/
Dcommon.cmake57 ${PLATFORM_DIR}/ext/target/arm/drivers/mpu/armv8m
172 ${PLATFORM_DIR}/ext/target/arm/drivers/mpu/armv8m/mpu_armv8m_drv.c
/trusted-firmware-m-3.6.0/platform/ext/target/nxp/lpcxpresso55s69/
DCMakeLists.txt72 ../../arm/drivers/mpu/armv8m
94 ../../arm/drivers/mpu/armv8m/mpu_armv8m_drv.c