Blame SOURCES/69-btattach-bcm.rules

ab4cc4
# Some devices have a bluetooth HCI connected to an uart, these needs to be
ab4cc4
# setup by calling btattach. The systemd btattach-bcm.service takes care of
ab4cc4
# this. These udev rules hardware-activate that service when necessary.
ab4cc4
#
ab4cc4
# For now this only suports ACPI enumerated Broadcom BT HCIs.
ab4cc4
# This has been tested on Bay and Cherry Trail devices with both ACPI and
ab4cc4
# PCI enumerated UARTs.
ab4cc4
ab4cc4
# Note we check for the platform device not for the acpi device, because
ab4cc4
# some DSDTs list multiple bluetooth adapters, but only some (or none)
ab4cc4
# are enabled. Only enabled adapters get a platform device created.
ab4cc4
ACTION!="add", GOTO="btattach_bcm_rules_end"
ab4cc4
SUBSYSTEM!="platform", GOTO="btattach_bcm_rules_end"
ab4cc4
ab4cc4
KERNEL=="BCM2E1A:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
ab4cc4
KERNEL=="BCM2E39:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
ab4cc4
KERNEL=="BCM2E3A:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
ab4cc4
KERNEL=="BCM2E3D:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
ab4cc4
KERNEL=="BCM2E3F:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
ab4cc4
KERNEL=="BCM2E40:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
ab4cc4
KERNEL=="BCM2E54:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
ab4cc4
KERNEL=="BCM2E55:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
ab4cc4
KERNEL=="BCM2E64:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
ab4cc4
KERNEL=="BCM2E65:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
ab4cc4
KERNEL=="BCM2E67:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
ab4cc4
KERNEL=="BCM2E71:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
ab4cc4
KERNEL=="BCM2E7B:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
ab4cc4
KERNEL=="BCM2E7C:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
ab4cc4
KERNEL=="BCM2E7E:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
ab4cc4
KERNEL=="BCM2E95:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
ab4cc4
KERNEL=="BCM2E96:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service"
ab4cc4
ab4cc4
LABEL="btattach_bcm_rules_end"