From 8b8d7107919e6b06a112ca4fba681d28386547bb Mon Sep 17 00:00:00 2001 From: Marcel Ziswiler Date: Mon, 16 Oct 2023 18:32:38 +0200 Subject: btnxpuart: bluetooth nxp uart module configuration As the power-down pin (PD#) is shared and handled by +mmc-pwrseq for mwifiex_sdio, make sure mwifiex gets loaded first. Signed-off-by: Marcel Ziswiler (cherry picked from commit db93e09dcc520be7efbe38c8c6717f77c289825e) --- recipes-bsp/btnxpuartconf/btnxpuartconf/btnxpuart.conf | 1 + recipes-bsp/btnxpuartconf/btnxpuartconf_1.0.bb | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 recipes-bsp/btnxpuartconf/btnxpuartconf/btnxpuart.conf create mode 100644 recipes-bsp/btnxpuartconf/btnxpuartconf_1.0.bb diff --git a/recipes-bsp/btnxpuartconf/btnxpuartconf/btnxpuart.conf b/recipes-bsp/btnxpuartconf/btnxpuartconf/btnxpuart.conf new file mode 100644 index 0000000..41ff853 --- /dev/null +++ b/recipes-bsp/btnxpuartconf/btnxpuartconf/btnxpuart.conf @@ -0,0 +1 @@ +install btnxpuart /sbin/modprobe mwifiex_sdio; sleep 1; /sbin/modprobe --ignore-install btnxpuart diff --git a/recipes-bsp/btnxpuartconf/btnxpuartconf_1.0.bb b/recipes-bsp/btnxpuartconf/btnxpuartconf_1.0.bb new file mode 100644 index 0000000..c5f9adf --- /dev/null +++ b/recipes-bsp/btnxpuartconf/btnxpuartconf_1.0.bb @@ -0,0 +1,14 @@ +SUMMARY = "Bluetooth NXP UART (btnxpuart) Configuration" + +DESCRIPTION = "As the power-down pin (PD#) is shared and handled by \ +mmc-pwrseq for mwifiex_sdio, make sure mwifiex gets loaded first." + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" + +SRC_URI = "file://btnxpuart.conf" + +do_install () { + install -d ${D}/etc/modprobe.d/ + install -m 0755 ${WORKDIR}/btnxpuart.conf ${D}/etc/modprobe.d/btnxpuart.conf +} -- cgit v1.2.3