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:
Moritz Fischer 2023-08-08 20:21:55 -07:00 committed by Carles Cufí
commit 9e8a8b4e85
7 changed files with 6 additions and 6 deletions

View file

@ -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 */

View file

@ -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",

View file

@ -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

View file

@ -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 */

View file

@ -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[];

View file

@ -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,