1# NXP MCR20A configuration options 2 3# Copyright (c) 2017 PHYTEC Messtechnik GmbH 4# SPDX-License-Identifier: Apache-2.0 5 6menuconfig IEEE802154_MCR20A 7 bool "NXP MCR20A Driver support" 8 default y 9 depends on DT_HAS_NXP_MCR20A_ENABLED 10 select SPI 11 12if IEEE802154_MCR20A 13 14config MCR20A_IS_PART_OF_KW2XD_SIP 15 bool "MCR20A device is part of KW2xD SiP" 16 help 17 If this option is set, the driver does not perform a hardware 18 reset and the CLK_OUT frequency is not set, instead these settings 19 are performed during the initialization of the SoC. 20 21choice 22 prompt "CLK_OUT frequency" 23 default MCR20A_CLK_OUT_4MHZ if MCR20A_IS_PART_OF_KW2XD_SIP 24 default MCR20A_CLK_OUT_DISABLED 25 help 26 Configuration of the MCR20A clock output pin. 27 28config MCR20A_CLK_OUT_DISABLED 29 bool "Disabled" 30 31config MCR20A_CLK_OUT_32MHZ 32 bool "32 MHz" 33 34config MCR20A_CLK_OUT_16MHZ 35 bool "16 MHz" 36 37config MCR20A_CLK_OUT_8MHZ 38 bool "8 MHz" 39 40config MCR20A_CLK_OUT_4MHZ 41 bool "4 MHz" 42 43config MCR20A_CLK_OUT_1MHZ 44 bool "1 MHz" 45 46config MCR20A_CLK_OUT_250KHZ 47 bool "250 kHz" 48 49config MCR20A_CLK_OUT_62500HZ 50 bool "62500 Hz" 51 52config MCR20A_CLK_OUT_32768HZ 53 bool "32768 Hz" 54 55endchoice 56 57config IEEE802154_MCR20A_RX_STACK_SIZE 58 int "Driver's internal RX thread stack size" 59 default 800 60 help 61 This option sets the driver's stack size for its internal RX thread. 62 The default value should be sufficient, but in case it proves to be 63 a too little one, this option makes it easy to play with the size. 64 65config IEEE802154_MCR20A_INIT_PRIO 66 int "MCR20A initialization priority" 67 default 80 68 help 69 Set the initialization priority number. Do not mess with it unless 70 you know what you are doing. Beware mcr20a requires gpio and spi to 71 be ready first (and sometime gpio should be the very first as spi 72 might need it too). And of course it has to start before the net stack. 73 74 75endif 76