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