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