[meta-zephyr,3/3] conf: machine: add 96boards Avenger96 support

Submitted by Wojciech Zmuda on Dec. 14, 2020, 3:14 p.m. | Patch ID: 178886

Details

Message ID 20201214151442.4592-4-zmuda.w@gmail.com
State New
Headers show

Commit Message

Wojciech Zmuda Dec. 14, 2020, 3:14 p.m.
From: Wojciech Zmuda <wojciech.zmuda@huawei.com>

The board is based on STMicro STM32MP157AAC 2xCortex-A7+2xCortex-M4
system-on-chip.

Add STM32MP1 family machine config. STM32MP1 support depends on
STM32 HAL and OpenAMP for inter-core communication.

This change has been verified with zephyr-philosophers
and zephyr-shell sample applications on by loading Zephyr image
to Cortex-M4 core from Linux using remoteproc framework.

Signed-off-by: Wojciech Zmuda <wojciech.zmuda@huawei.com>
---
 conf/machine/96b-avenger96.conf             |  8 ++++++++
 conf/machine/include/stm32mp1-cortex-m4.inc | 11 +++++++++++
 2 files changed, 19 insertions(+)
 create mode 100644 conf/machine/96b-avenger96.conf
 create mode 100644 conf/machine/include/stm32mp1-cortex-m4.inc

Patch hide | download patch | download mbox

diff --git a/conf/machine/96b-avenger96.conf b/conf/machine/96b-avenger96.conf
new file mode 100644
index 0000000..7bcfb4a
--- /dev/null
+++ b/conf/machine/96b-avenger96.conf
@@ -0,0 +1,8 @@ 
+#@TYPE: Machine
+#@NAME: 96b_avenger96
+
+#@DESCRIPTION: Machine configuration for 96Boards Avenger96 Board.
+
+require conf/machine/include/stm32mp1-cortex-m4.inc
+
+ARCH_96b-avenger96 = "arm"
diff --git a/conf/machine/include/stm32mp1-cortex-m4.inc b/conf/machine/include/stm32mp1-cortex-m4.inc
new file mode 100644
index 0000000..b82b02d
--- /dev/null
+++ b/conf/machine/include/stm32mp1-cortex-m4.inc
@@ -0,0 +1,11 @@ 
+#@TYPE: Machine
+#@NAME: stm32mp1-cortex-m4
+
+#@DESCRIPTION: Machine configuration for Cortex-M4 core of STMicroelectronics STM32MP1 SoC.
+
+require conf/machine/include/tune-cortexm4.inc
+
+# Include OpenAMP for communication with Cortex-A7 core of the SoC
+MACHINEOVERRIDES =. "stm32:openamp:"
+
+TUNE_FEATURES = "armv7m cortexm4"