2019-11-01 20:45:29 +08:00
|
|
|
# TI CC2520 configuration options
|
|
|
|
|
2017-08-16 23:05:14 +08:00
|
|
|
# Copyright (c) 2017 Intel Corporation
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2017-02-03 19:59:59 +08:00
|
|
|
|
2017-02-06 18:49:16 +08:00
|
|
|
menuconfig IEEE802154_CC2520
|
2017-02-03 19:59:59 +08:00
|
|
|
bool "TI CC2520 Driver support"
|
2022-07-18 21:55:47 +08:00
|
|
|
default y
|
2022-07-27 16:54:34 +08:00
|
|
|
depends on DT_HAS_TI_CC2520_ENABLED
|
2017-02-03 19:59:59 +08:00
|
|
|
|
2017-03-21 17:11:53 +08:00
|
|
|
if IEEE802154_CC2520
|
2017-02-03 19:59:59 +08:00
|
|
|
|
2017-02-06 18:49:16 +08:00
|
|
|
config IEEE802154_CC2520_RX_STACK_SIZE
|
2017-04-25 02:30:10 +08:00
|
|
|
int "Driver's internal RX thread stack size"
|
2017-02-03 19:59:59 +08:00
|
|
|
default 800
|
|
|
|
help
|
2018-02-15 21:36:16 +08:00
|
|
|
This option sets the driver's stack size for its internal RX thread.
|
|
|
|
The default value should be sufficient, but in case it proves to be
|
|
|
|
a too little one, this option makes it easy to play with the size.
|
2017-02-03 19:59:59 +08:00
|
|
|
|
2017-02-06 18:49:16 +08:00
|
|
|
config IEEE802154_CC2520_INIT_PRIO
|
2017-05-06 06:37:53 +08:00
|
|
|
int "CC2520 initialization priority"
|
2017-02-03 19:59:59 +08:00
|
|
|
default 80
|
|
|
|
help
|
2018-02-15 21:36:16 +08:00
|
|
|
Set the initialization priority number. Do not mess with it unless
|
|
|
|
you know what you are doing. Beware cc2520 requires gpio and spi to
|
|
|
|
be ready first (and sometime gpio should be the very first as spi
|
|
|
|
might need it too). And of course it has to start before the net stack.
|
2017-02-03 19:59:59 +08:00
|
|
|
|
2017-03-16 20:44:12 +08:00
|
|
|
config IEEE802154_CC2520_RANDOM_MAC
|
|
|
|
bool "Random MAC address"
|
|
|
|
default y
|
|
|
|
help
|
|
|
|
Generate a random MAC address dynamically.
|
|
|
|
|
|
|
|
if ! IEEE802154_CC2520_RANDOM_MAC
|
|
|
|
|
|
|
|
config IEEE802154_CC2520_MAC4
|
|
|
|
hex "MAC Address Byte 4"
|
|
|
|
default 0
|
2018-06-01 12:15:55 +08:00
|
|
|
range 0 0xff
|
2017-03-16 20:44:12 +08:00
|
|
|
help
|
|
|
|
This is the byte 4 of the MAC address.
|
|
|
|
|
|
|
|
config IEEE802154_CC2520_MAC5
|
|
|
|
hex "MAC Address Byte 5"
|
|
|
|
default 0
|
2018-06-01 12:15:55 +08:00
|
|
|
range 0 0xff
|
2017-03-16 20:44:12 +08:00
|
|
|
help
|
|
|
|
This is the byte 5 of the MAC address.
|
|
|
|
|
|
|
|
config IEEE802154_CC2520_MAC6
|
|
|
|
hex "MAC Address Byte 6"
|
|
|
|
default 0
|
2018-06-01 12:15:55 +08:00
|
|
|
range 0 0xff
|
2017-03-16 20:44:12 +08:00
|
|
|
help
|
|
|
|
This is the byte 6 of the MAC address.
|
|
|
|
|
|
|
|
config IEEE802154_CC2520_MAC7
|
|
|
|
hex "MAC Address Byte 7"
|
|
|
|
default 0
|
2018-06-01 12:15:55 +08:00
|
|
|
range 0 0xff
|
2017-03-16 20:44:12 +08:00
|
|
|
help
|
|
|
|
This is the byte 7 of the MAC address.
|
|
|
|
|
2017-02-22 15:37:51 +08:00
|
|
|
endif # IEEE802154_CC2520_RANDOM_MAC
|
|
|
|
|
|
|
|
config IEEE802154_CC2520_CRYPTO
|
2022-03-09 19:05:12 +08:00
|
|
|
bool "Hardware crypto helper on cc2520"
|
2022-07-18 21:55:47 +08:00
|
|
|
default y
|
2017-02-22 15:37:51 +08:00
|
|
|
depends on NET_L2_IEEE802154_SECURITY
|
|
|
|
help
|
2018-02-15 21:36:16 +08:00
|
|
|
This option will expose the hardware AES encryption from CC2520.
|
|
|
|
Such feature should not be used for anything but 802.15.4 security.
|
|
|
|
The crypto device exposed will only support synchronous CCM operation.
|
2017-02-22 15:37:51 +08:00
|
|
|
|
|
|
|
config IEEE802154_CC2520_CRYPTO_INIT_PRIO
|
|
|
|
int "TI CC2520 crypto device initialization priority"
|
|
|
|
default 81
|
|
|
|
depends on IEEE802154_CC2520_CRYPTO
|
|
|
|
help
|
2018-02-15 21:36:16 +08:00
|
|
|
Set the initialization priority number. Do not mess with it unless
|
|
|
|
you know what you are doing. It should be initialized after CC2520
|
|
|
|
as it shares the same runtime context.
|
2017-03-21 17:11:53 +08:00
|
|
|
|
|
|
|
endif # IEEE802154_CC2520
|