Skip to content

samples: openamp_rsc_table: use vendor-specific resource table to reply to host #93451

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
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
5 changes: 0 additions & 5 deletions drivers/ipm/Kconfig.imx
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,4 @@ config IPM_IMX_MAX_ID_VAL
default 1 if IPM_IMX_MAX_DATA_SIZE_8
default 0 if IPM_IMX_MAX_DATA_SIZE_16

config IPM_IMX_FW_READY_REPLY
bool "Send FW_READY reply message"
help
Send FW_READY reply to check for FW boot completion

endif # IPM_IMX
16 changes: 0 additions & 16 deletions drivers/ipm/ipm_imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,22 +322,6 @@ static int imx_mu_init(const struct device *dev)
MU_Init(MU(config));
config->irq_config_func(dev);

#if defined(CONFIG_IPM_IMX_FW_READY_REPLY)
/* Send FW_READY reply message - this is used on host side,
* for handshake communication.
*
* An example is in Linux, imx_dsp_rproc driver, where
* after starting the remote processor, the host is waiting for a
* FW_READY reply.
*/
MU_Type * base = MU(config);

MU_TriggerInterrupts(base, kMU_GenInt0InterruptTrigger |
kMU_GenInt1InterruptTrigger |
kMU_GenInt2InterruptTrigger |
kMU_GenInt3InterruptTrigger);
#endif

return 0;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ CONFIG_LOG_PRINTK=n
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

#vendor-specific resource table
CONFIG_OPENAMP_VENDOR_RSC_TABLE=y
CONFIG_OPENAMP_VENDOR_RSC_TABLE_FILE="nxp_resource_table.c"
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ CONFIG_LOG_PRINTK=n
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
CONFIG_LOG=y
CONFIG_LOG_BACKEND_UART=y
CONFIG_LOG_DEFAULT_LEVEL=0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@ CONFIG_LOG_PRINTK=n
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
CONFIG_SHELL=n

#vendor-specific resource table
CONFIG_OPENAMP_VENDOR_RSC_TABLE=y
CONFIG_OPENAMP_VENDOR_RSC_TABLE_FILE="nxp_resource_table.c"