]>
Commit | Line | Data |
---|---|---|
477801c9 JR |
1 | # Some devices have a bluetooth HCI connected to an uart, these needs to be |
2 | # setup by calling btattach. The systemd btattach-bcm.service takes care of | |
3 | # this. These udev rules hardware-activate that service when necessary. | |
4 | # | |
5 | # For now this only suports ACPI enumerated Broadcom BT HCIs. | |
6 | # This has been tested on Bay and Cherry Trail devices with both ACPI and | |
7 | # PCI enumerated UARTs. | |
8 | ||
9 | # Note we check for the platform device not for the acpi device, because | |
10 | # some DSDTs list multiple bluetooth adapters, but only some (or none) | |
11 | # are enabled. Only enabled adapters get a platform device created. | |
12 | ACTION!="add", GOTO="btattach_bcm_rules_end" | |
13 | SUBSYSTEM!="platform", GOTO="btattach_bcm_rules_end" | |
14 | ||
15 | KERNEL=="BCM2E1A:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" | |
16 | KERNEL=="BCM2E39:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" | |
17 | KERNEL=="BCM2E3A:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" | |
18 | KERNEL=="BCM2E3D:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" | |
19 | KERNEL=="BCM2E3F:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" | |
20 | KERNEL=="BCM2E40:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" | |
21 | KERNEL=="BCM2E54:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" | |
22 | KERNEL=="BCM2E55:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" | |
23 | KERNEL=="BCM2E64:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" | |
24 | KERNEL=="BCM2E65:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" | |
25 | KERNEL=="BCM2E67:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" | |
26 | KERNEL=="BCM2E71:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" | |
27 | KERNEL=="BCM2E7B:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" | |
28 | KERNEL=="BCM2E7C:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" | |
29 | KERNEL=="BCM2E7E:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" | |
30 | KERNEL=="BCM2E95:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" | |
31 | KERNEL=="BCM2E96:00", TAG+="systemd", ENV{SYSTEMD_WANTS}="btattach-bcm@%k.service" | |
32 | ||
33 | LABEL="btattach_bcm_rules_end" |