zephyr/soc
Fabio Baltieri 6cbf6a50a0 soc: npcx: setup custom MPU regions for npcx7
NPCX7 variants allocate code RAM either at 0x10070000 or 0x10090000.
The MPU requires addresses and region sizes to be aligned, so the
generic cortex_m/arm_mpu_regions.c results in an ineffective setup with
the addresses above.

This adds a custom mpu_regions setup for the npcx7, which covers both
available sizes, resulting in these two possible setups:

- 192kB devices

  Code ram: 0x10090000 to 0x100bffff
MPU region: 0x10080000 to 0x100bffff (256k)

- 320kB devices

    Code ram: 0x10070000 to 0x100bffff
MPU region 0: 0x10040000 to 0x1007ffff (256k)
MPU region 1: 0x10080000 to 0x100bffff (256k)

In both cases MPU data RAM setting is from 0x200c0000 to 0x200cffff,
matching the generic Cortex-m setup.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
2021-06-10 17:14:49 -04:00
..
arc arc: hsdk: add compiler options without check 2021-05-25 07:04:32 -05:00
arm soc: npcx: setup custom MPU regions for npcx7 2021-06-10 17:14:49 -04:00
arm64 board: arm64: Add FVP Base RevC 2xAEMv8A board 2021-04-27 13:30:07 -04:00
nios2
posix posix: Add missing include 2021-04-27 13:17:36 -04:00
riscv ITE Keyboard scan: add registers for ITE keyboard scan driver 2021-05-17 15:24:11 -04:00
sparc boards: set CPU_HAS_FPU on LEON3 soc and boards 2020-12-04 14:33:43 +02:00
x86 soc/x86: Clean up EHL kconfigs 2021-05-07 16:48:58 -04:00
xtensa soc: xtensa: linker: Update linker scripts for C++ build 2021-05-28 09:32:44 -05:00
Kconfig timing: introduce timing functions as a generic feature 2020-09-05 13:28:38 -05:00