1# SPDX-License-Identifier: Apache-2.0
2# Copyright (c) 2022, Intel Corporation
3
4config IPM_MCUX
5	bool "MCUX IPM driver"
6	default y
7	depends on DT_HAS_NXP_LPC_MAILBOX_ENABLED
8	select RESET
9	help
10	  Driver for MCUX mailbox
11
12config IPM_IMX
13	bool "IMX IPM driver"
14	default y
15	depends on DT_HAS_NXP_IMX_MU_ENABLED
16	help
17	  Driver for NXP i.MX messaging unit
18
19if IPM_IMX
20
21choice
22	prompt "IMX IPM max data size"
23	default IPM_IMX_MAX_DATA_SIZE_16
24	help
25	  Select maximum message size for NXP i.MX messaging unit.
26
27config IPM_IMX_MAX_DATA_SIZE_4
28	bool "4 bytes"
29	help
30	  There will be four message types with ids 0, 1, 2 or 3
31	  and a maximum size of 4 bytes each.
32
33config IPM_IMX_MAX_DATA_SIZE_8
34	bool "8 bytes"
35	help
36	  There will be two message types with ids 0 or 1
37	  and a maximum size of 8 bytes each.
38
39config IPM_IMX_MAX_DATA_SIZE_16
40	bool "16 bytes"
41	help
42	  There will be a single message type with id 0
43	  and a maximum size of 16 bytes.
44
45endchoice
46
47config IPM_IMX_MAX_DATA_SIZE
48	int
49	range 4 16
50	default 4 if IPM_IMX_MAX_DATA_SIZE_4
51	default 8 if IPM_IMX_MAX_DATA_SIZE_8
52	default 16 if IPM_IMX_MAX_DATA_SIZE_16
53
54config IPM_IMX_MAX_ID_VAL
55	int
56	range 0 3
57	default 3 if IPM_IMX_MAX_DATA_SIZE_4
58	default 1 if IPM_IMX_MAX_DATA_SIZE_8
59	default 0 if IPM_IMX_MAX_DATA_SIZE_16
60
61config IPM_IMX_FW_READY_REPLY
62	bool "Send FW_READY reply message"
63	help
64	  Send FW_READY reply to check for FW boot completion
65
66endif # IPM_IMX
67