Add stm32mp13 machine support

Rename stm32mp1-disco and stm32mp1-eval on
stm32mp15-disco and stm32mp15-eval

Signed-off-by: Christophe Priouzeau <christophe.priouzeau@foss.st.com>
Change-Id: Id28971e6d1fc895e39440b229d9cbe8d5a1af162
This commit is contained in:
Christophe Priouzeau authored and bernard PUEL committed 2022-06-21 10:18:08 +02:00
1 parent 2a2c5d495a
commit 6c19d25a73
13 files changed
+292 -49

No files matched your search

@@ -0,0 +1,115 @@
From a4ddabdfdf684f39f7cd3f4d7b29be5f12c8ed5d Mon Sep 17 00:00:00 2001
From: Christophe Priouzeau <christophe.priouzeau@foss.st.com>
Date: Fri, 7 Jan 2022 09:24:37 +0100
Subject: [PATCH 2/2] conf: add card config for stm32mp13x_evd board
Add card configuration file for STM32MP13x-EVD board.
Signed-off-by: Olivier Moysan <olivier.moysan@st.com>
---
src/conf/cards/Makefile.am | 3 +-
src/conf/cards/STM32MP13EV1.conf | 65 ++++++++++++++++++++++++++++++++
src/conf/cards/aliases.conf | 1 +
3 files changed, 68 insertions(+), 1 deletion(-)
create mode 100644 src/conf/cards/STM32MP13EV1.conf
diff --git a/src/conf/cards/Makefile.am b/src/conf/cards/Makefile.am
index c29d831..2ed47ad 100644
--- a/src/conf/cards/Makefile.am
+++ b/src/conf/cards/Makefile.am
@@ -60,7 +60,8 @@ cfg_files = aliases.conf \
VXPocket.conf \
VXPocket440.conf \
STM32MP15EV.conf \
- STM32MP15DK.conf
+ STM32MP15DK.conf \
+ STM32MP13EV1.conf
if BUILD_ALISP
cfg_files += aliases.alisp
diff --git a/src/conf/cards/STM32MP13EV1.conf b/src/conf/cards/STM32MP13EV1.conf
new file mode 100644
index 0000000..332bdbc
--- /dev/null
+++ b/src/conf/cards/STM32MP13EV1.conf
@@ -0,0 +1,65 @@
+<confdir:pcm/front.conf>
+
+STM32MP13EV1.pcm.front.0 {
+ @args [ CARD ]
+ @args.CARD { type string }
+ type asym
+ playback.pcm {
+ type hw
+ card $CARD
+ device 0
+ }
+}
+
+<confdir:pcm/default.conf>
+
+STM32MP13EV1.pcm.default {
+ @args [ CARD ]
+ @args.CARD { type string }
+ type asym
+ playback.pcm {
+ type hw
+ card $CARD
+ device 0
+ }
+ capture.pcm {
+ type hw
+ card $CARD
+ device 1
+ }
+}
+
+<confdir:pcm/iec958.conf>
+
+STM32MP13EV1.pcm.iec958.0 {
+ @args [ CARD AES0 AES1 AES2 AES3 ]
+ @args.CARD { type string }
+ @args.AES0 { type integer }
+ @args.AES1 { type integer }
+ @args.AES2 { type integer }
+ @args.AES3 { type integer }
+ type asym
+ playback.pcm {
+ type iec958
+ slave.pcm {
+ type hw
+ card $CARD
+ device 2
+ }
+ type hooks
+ hooks.0 {
+ type ctl_elems
+ hook_args [
+ {
+ interface PCM
+ name "IEC958 Playback Default"
+ device 2
+ lock true
+ preserve true
+ value [ $AES0 $AES1 $AES2 $AES3 ]
+ }
+ ]
+ }
+ }
+}
+
diff --git a/src/conf/cards/aliases.conf b/src/conf/cards/aliases.conf
index b282549..d1897c9 100644
--- a/src/conf/cards/aliases.conf
+++ b/src/conf/cards/aliases.conf
@@ -59,6 +59,7 @@ pistachio cards.pistachio-card
VC4-HDMI cards.vc4-hdmi
STM32MP15-EV cards.STM32MP15EV
STM32MP15-DK cards.STM32MP15DK
+STM32MP13-EV1 cards.STM32MP13EV1
<confdir:ctl/default.conf>
<confdir:pcm/default.conf>
--
2.25.1
+1
View File
@@ -1,4 +1,5 @@
FILESEXTRAPATHS:prepend:stm32mpcommon := "${THISDIR}/${PN}:"
SRC_URI:append:stm32mpcommon = " \
file://0001-conf-add-card-configs-for-stm32mp15x-boards.patch \
file://0002-conf-add-card-config-for-stm32mp13x_evd-board.patch \
"