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