Add bluetoth firmware loader systemd service

This oneshot service is wanted by basic.target and when done
creates hci0. When hci0 is up, systemd automatically launches
the special bluetooth.target which fires off bluez.

systemd[1]: Started Bluetooth firmware loader.
systemd[1]: Starting Bluetooth service...
bluetoothd[3381]: Bluetooth daemon 5.50
systemd[1]: Started Bluetooth service.
bluetoothd[3381]: Starting SDP server
systemd[1]: Reached target Bluetooth.
bluetoothd[3381]: Bluetooth management interface 1.14 initialized
NetworkManager[3008]: <info>  [1536096989.9653] bluez: use BlueZ version 5

Change-Id: I25499609d8b18d9ac5134a1c0bbd5c7627ed2bdc
diff --git a/debian/imx-firmware.btfw_loader.service b/debian/imx-firmware.btfw_loader.service
new file mode 100644
index 0000000..8763d45
--- /dev/null
+++ b/debian/imx-firmware.btfw_loader.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Bluetooth firmware loader
+After=sysinit.target local-fs.target
+DefaultDependencies=no
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/bin/hciattach /dev/ttymxc1 qca 3000000 flow -b -t 120
+
+[Install]
+WantedBy=basic.target
diff --git a/debian/rules b/debian/rules
index b01c78b..f0ab589 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,7 @@
 # export DH_VERBOSE=1
 
 %:
-	dh $@
+	dh $@ --with systemd
 
 override_dh_strip:
 	true
@@ -17,3 +17,10 @@
 	install -d debian/imx-firmware/lib/firmware
 	install -m 644 -o 0 -g 0 -t debian/imx-firmware/lib/firmware nvm_tlv_3.2.bin
 	ln -s qca/rampatch_00130302.bin debian/imx-firmware/lib/firmware/rampatch_tlv_3.2.tlv
+
+
+override_dh_systemd_enable:
+	dh_systemd_enable --name=btfw_loader
+
+override_dh_systemd_start:
+	dh_systemd_start --no-start