Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for i.MX8M Plus #53

Merged
merged 5 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
CONFIG_IPM_IMX_MAX_DATA_SIZE_16=n
CONFIG_IPM_IMX_MAX_DATA_SIZE_4=y
CONFIG_OPENAMP_WITH_DCACHE=y
CONFIG_IPM_IMX_FW_READY_REPLY=y
24 changes: 24 additions & 0 deletions examples/zephyr/rpmsg_multi_services/boards/nxp_adsp_imx8m.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Copyright 2024 NXP
*
* SPDX-License-Identifier: Apache-2.0
*/

/ {
chosen {
/*
* shared memory reserved for the inter-processor communication
*/
zephyr,ipc_shm = &dspsram3;
zephyr,ipc = &mailbox0;
};

dspsram3: memory@942f0000 {
compatible = "mmio-sram";
reg = <0x942f0000 0x110000>;
};
};

&mailbox0 {
status = "okay";
};
1 change: 0 additions & 1 deletion examples/zephyr/rpmsg_multi_services/prj.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
CONFIG_KERNEL_BIN_NAME="rpmsg_multi_services"
CONFIG_PRINTK=n
CONFIG_IPM=y
CONFIG_PLATFORM_SPECIFIC_INIT=n
CONFIG_MAIN_STACK_SIZE=1024
CONFIG_HEAP_MEM_POOL_SIZE=1024
CONFIG_OPENAMP=y
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
sample:
description: This app provides an example of how to integrate OpenAMP
with Zephyr in cluding a esource table.
with Zephyr including a resource table.
name: OpenAMP with resource table example integration
tests:
sample.subsys.ipc.openamp_rs_table:
build_only: true
platform_allow: stm32mp157c_dk2
platform_allow: qemu_cortex_r5
platform_allow: kv260_r5
platform_allow: nxp_adsp_imx8m
tags: ipm
19 changes: 0 additions & 19 deletions examples/zephyr/rpmsg_multi_services/src/CMakeLists.txt

This file was deleted.

89 changes: 0 additions & 89 deletions examples/zephyr/rpmsg_multi_services/src/README.rst

This file was deleted.

7 changes: 3 additions & 4 deletions examples/zephyr/rpmsg_multi_services/src/main_remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,13 @@ LOG_MODULE_REGISTER(openamp_rsc_table, LOG_LEVEL_DBG);
#define SHM_START_ADDR DT_REG_ADDR(SHM_NODE)
#define SHM_SIZE DT_REG_SIZE(SHM_NODE)

#define APP_TASK_STACK_SIZE (512)
#define APP_TASK_STACK_SIZE (1024)

#define MAX_TTY_EPT 2
#define MAX_RAW_EPT 2

/* Add 512 extra bytes for the TTY task stack for the "tx_buff" buffer. */
#define APP_TTY_TASK_STACK_SIZE (1024)
#define APP_RAW_TASK_STACK_SIZE (1024)
#define APP_TTY_TASK_STACK_SIZE (2048)
arnopo marked this conversation as resolved.
Show resolved Hide resolved
#define APP_RAW_TASK_STACK_SIZE (2048)

K_THREAD_STACK_DEFINE(thread_mng_stack, APP_TASK_STACK_SIZE);
K_THREAD_STACK_DEFINE(thread_rp__client_stack, APP_TASK_STACK_SIZE);
Expand Down
10 changes: 0 additions & 10 deletions examples/zephyr/rpmsg_multi_services/src/prj.conf

This file was deleted.