soc: arm: common: cortex_m: Move arm_mpu_mem_cfg.h
Move arm_mpu_mem_cfg header to common include directory. The benefits are two-fold: - Allow for out of tree SoC definitions to use them to define mpu_regions. - Remove odd relative include path Signed-off-by: Moritz Fischer <moritzf@google.com>
This commit is contained in:
parent
0f96355b98
commit
9e8a8b4e85
7 changed files with 6 additions and 6 deletions
|
@ -8,7 +8,7 @@
|
|||
#include <zephyr/arch/arm/aarch32/mpu/arm_mpu.h>
|
||||
#include <zephyr/devicetree/memory-attr.h>
|
||||
|
||||
#include "arm_mpu_mem_cfg.h"
|
||||
#include <zephyr/arch/arm/aarch32/cortex_m/arm_mpu_mem_cfg.h>
|
||||
|
||||
static const struct arm_mpu_region mpu_regions[] = {
|
||||
/* Region 0 */
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include "../../common/cortex_m/arm_mpu_mem_cfg.h"
|
||||
#include <zephyr/arch/arm/aarch32/cortex_m/arm_mpu_mem_cfg.h>
|
||||
|
||||
static const struct arm_mpu_region mpu_regions[] = {
|
||||
MPU_REGION_ENTRY("FLASH_0_0",
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/devicetree.h>
|
||||
#include "../../common/cortex_m/arm_mpu_mem_cfg.h"
|
||||
#include <zephyr/arch/arm/aarch32/cortex_m/arm_mpu_mem_cfg.h>
|
||||
|
||||
#define REGION_MASK_BASE_ADDRESS 0x00000000U
|
||||
#define REGION_ITCM_BASE_ADDRESS 0x00000000U
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
#include <zephyr/devicetree.h>
|
||||
#include <zephyr/devicetree/memory-attr.h>
|
||||
#include "../../common/cortex_m/arm_mpu_mem_cfg.h"
|
||||
#include <zephyr/arch/arm/aarch32/cortex_m/arm_mpu_mem_cfg.h>
|
||||
|
||||
static const struct arm_mpu_region mpu_regions[] = {
|
||||
/* Region 0 */
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#include <zephyr/devicetree.h>
|
||||
#include <zephyr/linker/devicetree_regions.h>
|
||||
#include "../../common/cortex_m/arm_mpu_mem_cfg.h"
|
||||
#include <zephyr/arch/arm/aarch32/cortex_m/arm_mpu_mem_cfg.h>
|
||||
|
||||
#if !defined(CONFIG_XIP)
|
||||
extern char _rom_attr[];
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <zephyr/devicetree.h>
|
||||
#include "../../common/cortex_m/arm_mpu_mem_cfg.h"
|
||||
#include <zephyr/arch/arm/aarch32/cortex_m/arm_mpu_mem_cfg.h>
|
||||
|
||||
static const struct arm_mpu_region mpu_regions[] = {
|
||||
MPU_REGION_ENTRY("FLASH", CONFIG_FLASH_BASE_ADDRESS,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue