mirror of
https://github.com/linux-sunxi/meta-sunxi.git
synced 2025-04-05 08:26:47 +02:00
ap6212: enable bluetooth support
This commit is contained in:
parent
d58e8c36d7
commit
992691c2bc
@ -1,7 +1,9 @@
|
|||||||
# Include for boards with AMPAK 6212A Wifi / Bluetooth module
|
# Include for boards with AMPAK 6212A Wifi / Bluetooth module
|
||||||
# https://linux-sunxi.org/Wifi#Ampak
|
# https://linux-sunxi.org/Wifi#Ampak
|
||||||
|
|
||||||
MACHINE_EXTRA_RRECOMMENDS:append = " kernel-module-brcmfmac"
|
MACHINE_EXTRA_RRECOMMENDS:append = " kernel-module-brcmfmac kernel-module-hci-uart"
|
||||||
MACHINE_EXTRA_RDEPENDS:append = " linux-firmware-bcm43430"
|
MACHINE_EXTRA_RDEPENDS:append = " linux-firmware-bcm43430 armbian-firmware-ap6212"
|
||||||
|
|
||||||
MACHINE_FEATURES:append = " bluetooth wifi"
|
MACHINE_FEATURES:append = " bluetooth wifi"
|
||||||
|
|
||||||
|
KERNEL_FEATURES:append = "features/ap6212/ap6212.scc"
|
||||||
|
37
recipes-kernel/armbian-firmware/armbian-firmware_git.bb
Normal file
37
recipes-kernel/armbian-firmware/armbian-firmware_git.bb
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
SUMMARY = "Armbian Firmware"
|
||||||
|
DESCRIPTION = "Collection of firmware files necessary for Armbian supported hardware devices to work correctly with the Linux kernel"
|
||||||
|
LICENSE = "CLOSED"
|
||||||
|
|
||||||
|
PV = "1.0+git"
|
||||||
|
SRC_URI = "git://github.com/armbian/firmware.git;protocol=https;branch=master"
|
||||||
|
SRCREV = "4050e02da2dce2b74c97101f7964ecfb962f5aec"
|
||||||
|
|
||||||
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
|
inherit allarch
|
||||||
|
|
||||||
|
do_compile[noexec] = "1"
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
# ap6212 (bluetooth firmware only, wifi firmware is provided by linux-firmware-bcm43430)
|
||||||
|
install -d "${D}${nonarch_base_libdir}/firmware/ap6212"
|
||||||
|
install -m 0644 "${S}/ap6212/bcm43438a1.hcd" "${D}${nonarch_base_libdir}/firmware/ap6212/"
|
||||||
|
install -d "${D}${nonarch_base_libdir}/firmware/brcm"
|
||||||
|
ln -sf ../ap6212/bcm43438a1.hcd "${D}${nonarch_base_libdir}/firmware/brcm/BCM43430A1.hcd"
|
||||||
|
}
|
||||||
|
|
||||||
|
PACKAGES =+ " \
|
||||||
|
${PN}-ap6212 \
|
||||||
|
"
|
||||||
|
|
||||||
|
FILES:${PN}-ap6212 = " \
|
||||||
|
${nonarch_base_libdir}/firmware/ap6212/* \
|
||||||
|
${nonarch_base_libdir}/firmware/brcm/BCM43430A1.hcd \
|
||||||
|
"
|
||||||
|
|
||||||
|
|
||||||
|
# Make armbian-firmware depend on all of the split-out packages.
|
||||||
|
python populate_packages:prepend () {
|
||||||
|
firmware_pkgs = oe.utils.packages_filter_out_system(d)
|
||||||
|
d.appendVar('RRECOMMENDS:armbian-firmware', ' ' + ' '.join(firmware_pkgs))
|
||||||
|
}
|
@ -0,0 +1,5 @@
|
|||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
define KFEATURE_DESCRIPTION "AMPAK 6212(A) Wifi / Bluetooth module support"
|
||||||
|
|
||||||
|
include features/bluetooth/bluetooth-hciuart.scc
|
||||||
|
include features/wifi/wifi-sdio.scc
|
@ -0,0 +1,9 @@
|
|||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
# Dependencies
|
||||||
|
CONFIG_SERIAL_DEV_BUS=y
|
||||||
|
CONFIG_SERIAL_DEV_CTRL_TTYPORT=y
|
||||||
|
|
||||||
|
CONFIG_BT_HCIUART=m
|
||||||
|
CONFIG_BT_HCIUART_SERDEV=y
|
||||||
|
CONFIG_BT_HCIUART_BCM=y
|
@ -0,0 +1,3 @@
|
|||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
kconf hardware bluetooth-hciuart.cfg
|
@ -0,0 +1,7 @@
|
|||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
CONFIG_WLAN_VENDOR_BROADCOM=y
|
||||||
|
|
||||||
|
# brcm80211
|
||||||
|
CONFIG_BRCMUTIL=m
|
||||||
|
CONFIG_BRCMFMAC=m
|
||||||
|
CONFIG_BRCMFMAC_SDIO=y
|
@ -0,0 +1,5 @@
|
|||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
define KFEATURE_DESCRIPTION "Enable SDIO WiFi Drivers"
|
||||||
|
define KFEATURE_COMPATIBILITY board
|
||||||
|
|
||||||
|
kconf hardware broadcom-sdio.cfg
|
Loading…
x
Reference in New Issue
Block a user