1#
2# Copyright (c) 2020, STMicroelectronics
3# Copyright 2025 NXP
4#
5# SPDX-License-Identifier: Apache-2.0
6#
7
8config OPENAMP_RSC_TABLE
9	bool "coprocessor resource table"
10	imply OPENAMP
11	help
12	  add the resource table in the generated binary. This table is
13	  compatible with linux remote proc framework and OpenAMP library.
14
15config OPENAMP_VENDOR_RSC_TABLE
16	bool "Vendor specific resource table"
17	depends on OPENAMP_RSC_TABLE
18	help
19	  Enable vendor-specific resource table with features
20	  supported by remote processor.
21
22config OPENAMP_RSC_TABLE_NUM_RPMSG_BUFF
23	int "Resource table number of rpmsg buffers"
24	default 0
25	depends on OPENAMP_RSC_TABLE
26	help
27	  This option specifies the number of buffer used in a Vring for
28	  interprocessor communication
29
30config OPENAMP_RSC_TABLE_IPM_RX_ID
31	int "IPM RX channel ID"
32	default 0
33	depends on OPENAMP_RSC_TABLE
34	help
35	   This option specifies the IPM RX channel ID used in a VRING
36	   for interprocessor communication
37
38config OPENAMP_RSC_TABLE_IPM_TX_ID
39	int "IPM TX channel ID"
40	default 1
41	depends on OPENAMP_RSC_TABLE
42	help
43	   This option specifies the IPM TX channel ID used in a VRING
44	   for interprocessor communication
45
46config OPENAMP_COPY_RSC_TABLE
47	bool "Copy resource table section"
48	depends on OPENAMP_RSC_TABLE
49	help
50	  The .resource_table section must be placed in a specific location
51	  known by both this core and the remote core. If this is not taken
52	  care of by the remote then this firmware has the ability to copy
53	  the table to a specific location. This memory region can be declared
54	  in the device tree by the "zephyr,ipc_rsc_table" node.
55
56	  This is not needed if the remote loads this firmware and has control
57	  over the placement of the .resource_table section such as remoteproc.
58
59config OPENAMP_VENDOR_RSC_TABLE_FILE
60	string "Source file containing vendor-specific resource table"
61	default "resource_table.c"
62	depends on OPENAMP_VENDOR_RSC_TABLE
63	help
64	  Name of a source file containing vendor-specific
65	  resource table.
66
67config OPENAMP_VENDOR_ADDR_TRANSLATION
68	bool "Address translation support for OpenAMP"
69	depends on OPENAMP_RSC_TABLE
70	help
71	  Enable support for address translation from remote driver to device
72
73config OPENAMP_VENDOR_ADDR_TRANSLATION_FILE
74	string "Header file containing vendor-specific address translation table"
75	default "addr_translation.h"
76	depends on OPENAMP_VENDOR_ADDR_TRANSLATION
77	help
78	  Name of a header file containing vendor-specific
79	  address translation table.
80