1# TI CC2520 configuration options
2
3# Copyright (c) 2017 Intel Corporation
4# SPDX-License-Identifier: Apache-2.0
5
6menuconfig IEEE802154_CC2520
7	bool "TI CC2520 Driver support"
8	default y
9	depends on DT_HAS_TI_CC2520_ENABLED
10
11if IEEE802154_CC2520
12
13config IEEE802154_CC2520_RX_STACK_SIZE
14	int "Driver's internal RX thread stack size"
15	default 800
16	help
17	  This option sets the driver's stack size for its internal RX thread.
18	  The default value should be sufficient, but in case it proves to be
19	  a too little one, this option makes it easy to play with the size.
20
21config IEEE802154_CC2520_INIT_PRIO
22	int "CC2520 initialization priority"
23	default 80
24	help
25	  Set the initialization priority number. Do not mess with it unless
26	  you know what you are doing. Beware cc2520 requires gpio and spi to
27	  be ready first (and sometime gpio should be the very first as spi
28	  might need it too). And of course it has to start before the net stack.
29
30config IEEE802154_CC2520_RANDOM_MAC
31	bool "Random MAC address"
32	default y
33	help
34	  Generate a random MAC address dynamically.
35
36if ! IEEE802154_CC2520_RANDOM_MAC
37
38config IEEE802154_CC2520_MAC4
39	hex "MAC Address Byte 4"
40	default 0
41	range 0 0xff
42	help
43	  This is the byte 4 of the MAC address.
44
45config IEEE802154_CC2520_MAC5
46	hex "MAC Address Byte 5"
47	default 0
48	range 0 0xff
49	help
50	  This is the byte 5 of the MAC address.
51
52config IEEE802154_CC2520_MAC6
53	hex "MAC Address Byte 6"
54	default 0
55	range 0 0xff
56	help
57	  This is the byte 6 of the MAC address.
58
59config IEEE802154_CC2520_MAC7
60	hex "MAC Address Byte 7"
61	default 0
62	range 0 0xff
63	help
64	  This is the byte 7 of the MAC address.
65
66endif # IEEE802154_CC2520_RANDOM_MAC
67
68config IEEE802154_CC2520_CRYPTO
69	bool "Hardware crypto helper on cc2520"
70	default y
71	depends on NET_L2_IEEE802154_SECURITY
72	help
73	  This option will expose the hardware AES encryption from CC2520.
74	  Such feature should not be used for anything but 802.15.4 security.
75	  The crypto device exposed will only support synchronous CCM operation.
76
77config IEEE802154_CC2520_CRYPTO_INIT_PRIO
78	int "TI CC2520 crypto device initialization priority"
79	default 81
80	depends on IEEE802154_CC2520_CRYPTO
81	help
82	  Set the initialization priority number. Do not mess with it unless
83	  you know what you are doing. It should be initialized after CC2520
84	  as it shares the same runtime context.
85
86endif # IEEE802154_CC2520
87