summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiago De Franco <hiago.franco@toradex.com>2023-07-21 15:31:22 -0300
committerFrancesco Dolcini <francesco.dolcini@toradex.com>2023-09-07 14:12:52 +0000
commit598a5a0298a7ae6b2d119c879ef9f5525e175688 (patch)
tree7282ee7167eb268a6559f062c906142f6b22cdc5
parent56e195b10849e2973130695a1917c987a4fe1813 (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>
-rw-r--r--recipes-kernel/linux/linux-toradex-mainline-git/aarch64/defconfig3
-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
-rw-r--r--recipes-kernel/linux/linux-toradex-mainline-git/toradex_imx_v8.config5
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 70b3c7f..f824824 100644
--- a/recipes-kernel/linux/linux-toradex-mainline-git/aarch64/defconfig
+++ b/recipes-kernel/linux/linux-toradex-mainline-git/aarch64/defconfig
@@ -443,6 +443,7 @@ CONFIG_SERIAL_FSL_LINFLEXUART=y
CONFIG_SERIAL_FSL_LINFLEXUART_CONSOLE=y
CONFIG_SERIAL_MVEBU_UART=y
CONFIG_SERIAL_OWL=y
+CONFIG_RPMSG_TTY=m
CONFIG_SERIAL_DEV_BUS=y
CONFIG_VIRTIO_CONSOLE=y
CONFIG_IPMI_HANDLER=m
@@ -1344,6 +1345,8 @@ CONFIG_DEBUG_FS=y
# CONFIG_SCHED_DEBUG is not set
# CONFIG_DEBUG_PREEMPT 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/defconfig b/recipes-kernel/linux/linux-toradex-mainline-git/defconfig
index 452d275..a443c17 100644
--- a/recipes-kernel/linux/linux-toradex-mainline-git/defconfig
+++ b/recipes-kernel/linux/linux-toradex-mainline-git/defconfig
@@ -173,6 +173,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_R8188EU=m
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 3e31e68..a9a7a18 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
@@ -277,3 +277,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
diff --git a/recipes-kernel/linux/linux-toradex-mainline-git/toradex_imx_v8.config b/recipes-kernel/linux/linux-toradex-mainline-git/toradex_imx_v8.config
index 943a421..549f503 100644
--- a/recipes-kernel/linux/linux-toradex-mainline-git/toradex_imx_v8.config
+++ b/recipes-kernel/linux/linux-toradex-mainline-git/toradex_imx_v8.config
@@ -44,11 +44,14 @@ CONFIG_THERMAL_EMERGENCY_POWEROFF_DELAY_MS=10000
# Verdin EEPROM
CONFIG_EEPROM_AT24=y
-# 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
# Disable unnecessary TV stuff
CONFIG_MEDIA_ANALOG_TV_SUPPORT=n