summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiago De Franco <hiago.franco@toradex.com>2023-07-21 15:31:22 -0300
committerMax Krummenacher <max.krummenacher@toradex.com>2023-09-12 11:16:47 -0300
commit1a7dc688e14af7da3527fee2683958a947ed8d05 (patch)
tree177f7b961397ab1e0e2e1328b3f7272090a8cdb5
parentb936bacb982e980ea3d99ba2f80238b866eb382a (diff)
linux-toradex-mainline: toradex_defconfig: add rpmsg and remoteproc support
Add remoteproc, rpmsg and imx mailbox drivers to enable HMP inter processor communication features. Add rpmsg client and tty demo samples for testing. Signed-off-by: Hiago De Franco <hiago.franco@toradex.com> (cherry picked from commit 598a5a0298a7ae6b2d119c879ef9f5525e175688) Fixed rename of toradex_imx_v8.config -> toradex_aarch64.config Refreshed aarch64 defconfig Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Conflicts: recipes-kernel/linux/linux-toradex-mainline-git/aarch64/defconfig recipes-kernel/linux/linux-toradex-mainline-git/toradex_imx_v8.config
-rw-r--r--recipes-kernel/linux/linux-toradex-mainline-git/aarch64/defconfig3
-rw-r--r--recipes-kernel/linux/linux-toradex-mainline-git/aarch64/toradex_aarch64.config5
-rw-r--r--recipes-kernel/linux/linux-toradex-mainline-git/defconfig10
-rw-r--r--recipes-kernel/linux/linux-toradex-mainline-git/toradex_imx_v6_v7.config12
4 files changed, 29 insertions, 1 deletions
diff --git a/recipes-kernel/linux/linux-toradex-mainline-git/aarch64/defconfig b/recipes-kernel/linux/linux-toradex-mainline-git/aarch64/defconfig
index 8cd5988..f46b798 100644
--- a/recipes-kernel/linux/linux-toradex-mainline-git/aarch64/defconfig
+++ b/recipes-kernel/linux/linux-toradex-mainline-git/aarch64/defconfig
@@ -322,6 +322,7 @@ CONFIG_SERIAL_FSL_LPUART=y
CONFIG_SERIAL_FSL_LPUART_CONSOLE=y
CONFIG_SERIAL_FSL_LINFLEXUART=y
CONFIG_SERIAL_FSL_LINFLEXUART_CONSOLE=y
+CONFIG_RPMSG_TTY=m
CONFIG_SERIAL_DEV_BUS=y
CONFIG_VIRTIO_CONSOLE=y
CONFIG_IPMI_HANDLER=m
@@ -900,6 +901,8 @@ CONFIG_MAGIC_SYSRQ=y
CONFIG_DEBUG_FS=y
# CONFIG_SCHED_DEBUG is not set
# CONFIG_FTRACE is not set
+CONFIG_SAMPLES=y
+CONFIG_SAMPLE_RPMSG_CLIENT=m
CONFIG_CORESIGHT=m
CONFIG_CORESIGHT_LINK_AND_SINK_TMC=m
CONFIG_CORESIGHT_CATU=m
diff --git a/recipes-kernel/linux/linux-toradex-mainline-git/aarch64/toradex_aarch64.config b/recipes-kernel/linux/linux-toradex-mainline-git/aarch64/toradex_aarch64.config
index 4a01ed7..bacb174 100644
--- a/recipes-kernel/linux/linux-toradex-mainline-git/aarch64/toradex_aarch64.config
+++ b/recipes-kernel/linux/linux-toradex-mainline-git/aarch64/toradex_aarch64.config
@@ -112,11 +112,14 @@ CONFIG_EEPROM_AT24=y
# GPU
CONFIG_DRM_ETNAVIV=m
-# REMOTE PROC
+# RPMsg and RemoteProc for HMP
CONFIG_IMX_REMOTEPROC=y
CONFIG_RPMSG_CTRL=m
CONFIG_RPMSG_VIRTIO=y
CONFIG_REMOTEPROC_CDEV=y
+CONFIG_RPMSG_TTY=m
+CONFIG_SAMPLES=y
+CONFIG_SAMPLE_RPMSG_CLIENT=m
# Enable i.MX PCIE
CONFIG_PCI_IMX6_HOST=y
diff --git a/recipes-kernel/linux/linux-toradex-mainline-git/defconfig b/recipes-kernel/linux/linux-toradex-mainline-git/defconfig
index f0804d2..a6e08d2 100644
--- a/recipes-kernel/linux/linux-toradex-mainline-git/defconfig
+++ b/recipes-kernel/linux/linux-toradex-mainline-git/defconfig
@@ -172,6 +172,7 @@ CONFIG_SERIAL_IMX=y
CONFIG_SERIAL_IMX_CONSOLE=y
CONFIG_SERIAL_FSL_LPUART=y
CONFIG_SERIAL_FSL_LPUART_CONSOLE=y
+CONFIG_RPMSG_TTY=m
CONFIG_SERIAL_DEV_BUS=y
# CONFIG_I2C_COMPAT is not set
CONFIG_I2C_CHARDEV=y
@@ -333,6 +334,13 @@ CONFIG_STAGING=y
CONFIG_STAGING_MEDIA=y
CONFIG_VIDEO_IMX_MEDIA=y
CONFIG_COMMON_CLK_PWM=y
+CONFIG_IMX_MBOX=m
+CONFIG_REMOTEPROC=y
+CONFIG_REMOTEPROC_CDEV=y
+CONFIG_IMX_REMOTEPROC=m
+CONFIG_RPMSG_CHAR=m
+CONFIG_RPMSG_CTRL=m
+CONFIG_RPMSG_VIRTIO=m
CONFIG_EXTCON_USB_GPIO=y
CONFIG_IIO=y
CONFIG_IMX7D_ADC=y
@@ -405,3 +413,5 @@ CONFIG_DEBUG_FS=y
# CONFIG_SLUB_DEBUG is not set
# CONFIG_SCHED_DEBUG is not set
# CONFIG_FTRACE is not set
+CONFIG_SAMPLES=y
+CONFIG_SAMPLE_RPMSG_CLIENT=m
diff --git a/recipes-kernel/linux/linux-toradex-mainline-git/toradex_imx_v6_v7.config b/recipes-kernel/linux/linux-toradex-mainline-git/toradex_imx_v6_v7.config
index 6414323..a83d77d 100644
--- a/recipes-kernel/linux/linux-toradex-mainline-git/toradex_imx_v6_v7.config
+++ b/recipes-kernel/linux/linux-toradex-mainline-git/toradex_imx_v6_v7.config
@@ -279,3 +279,15 @@ CONFIG_DEBUG_LOCK_ALLOC=n
CONFIG_DMADEVICES=y
CONFIG_FSL_EDMA=y
CONFIG_DMA_VIRTUAL_CHANNELS=y
+
+# RPMsg and RemoteProc for HMP
+CONFIG_RPMSG_TTY=m
+CONFIG_IMX_MBOX=m
+CONFIG_REMOTEPROC=y
+CONFIG_REMOTEPROC_CDEV=y
+CONFIG_IMX_REMOTEPROC=m
+CONFIG_RPMSG_CHAR=m
+CONFIG_RPMSG_CTRL=m
+CONFIG_RPMSG_VIRTIO=m
+CONFIG_SAMPLES=y
+CONFIG_SAMPLE_RPMSG_CLIENT=m