From 808b315cf6a7f32f0d6b6e39d9bd69e5ebfb2e23 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Thu, 5 Oct 2017 00:25:14 +0300 Subject: [PATCH] arm: nxp: kw41z: Select IEEE802154_KW41Z driver for networking 802.15.4 is the networking hardware available in KW41Z SoC (and supported by Zephyr). So, if networking in enabled, automatically select the corresponding driver. This is similar to how frdm_k64f automatically selects Ethernet driver, 96b_carbon selects BLE/IPSP drivers, etc. (But we apply it on SoC level to reuse across the boards.) Signed-off-by: Paul Sokolovsky --- .../soc/nxp_kinetis/kwx/Kconfig.defconfig.mkw41z4 | 13 +++++++++++++ drivers/ieee802154/Kconfig.kw41z | 5 +++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/arch/arm/soc/nxp_kinetis/kwx/Kconfig.defconfig.mkw41z4 b/arch/arm/soc/nxp_kinetis/kwx/Kconfig.defconfig.mkw41z4 index 8c796337538..9ac526f908a 100644 --- a/arch/arm/soc/nxp_kinetis/kwx/Kconfig.defconfig.mkw41z4 +++ b/arch/arm/soc/nxp_kinetis/kwx/Kconfig.defconfig.mkw41z4 @@ -64,4 +64,17 @@ config SOC_FLASH_MCUX endif # FLASH +if NETWORKING + +config NET_L2_IEEE802154 + def_bool y + +config IEEE802154_KW41Z + def_bool y + +config NET_APP_IEEE802154_DEV_NAME + default IEEE802154_KW41Z_DRV_NAME + +endif # NETWORKING + endif # SOC_MKW41Z4 diff --git a/drivers/ieee802154/Kconfig.kw41z b/drivers/ieee802154/Kconfig.kw41z index 1443fe50e0a..608dc0d92d2 100644 --- a/drivers/ieee802154/Kconfig.kw41z +++ b/drivers/ieee802154/Kconfig.kw41z @@ -19,13 +19,14 @@ config IEEE802154_KW41Z_DRV_NAME string "NXP KW41Z Driver's name" default "KW41Z" help - This option sets the driver name + This option sets the driver name. Do not change it unless + you know what you are doing. config IEEE802154_KW41Z_INIT_PRIO int "KW41Z initialization priority" default 80 help - Set the initialization priority number. Do not mess with it unless + Set the initialization priority number. Do not change it unless you know what you are doing. It has to start before the net stack. endif