diff options
author | Scott Murray <scott.murray@konsulko.com> | 2019-09-09 19:44:03 -0400 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2019-09-12 13:06:19 +0000 |
commit | f28a1e8f8c89a80b0cbcc020f888025750c171bc (patch) | |
tree | 22118781efdb0e504c9727e18f88058b7934dafc /meta-agl-bsp/meta-rcar-gen3-adas/recipes-bsp/si-tools/files/si-init.service | |
parent | c46eeba99648976abb1da62777847127cf9a4b90 (diff) |
meta-agl-bsp: meta-rcar-gen3-adas: Rework KF radio initialization
Add a systemd service unit and recipe to install it and a udev rules
file so that the Kingfisher Si4689 radio will be initialized on boot
if present, and the I2C device to access it will be accessible to
applications with the "audio" permission. Note that an accompanying
change to agl-service-radio is required to remove its now unworkable
usage of the si_init script, which is replaced by this change.
Bug-AGL: SPEC-2716
Change-Id: I81cf4b8c439598bdac1eb7910a0d693825141d7b
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
(cherry picked from commit c369b00e617f408e2a408b0c04dc44fe7e06b7a1)
Diffstat (limited to 'meta-agl-bsp/meta-rcar-gen3-adas/recipes-bsp/si-tools/files/si-init.service')
-rw-r--r-- | meta-agl-bsp/meta-rcar-gen3-adas/recipes-bsp/si-tools/files/si-init.service | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta-agl-bsp/meta-rcar-gen3-adas/recipes-bsp/si-tools/files/si-init.service b/meta-agl-bsp/meta-rcar-gen3-adas/recipes-bsp/si-tools/files/si-init.service new file mode 100644 index 000000000..d2204cb6a --- /dev/null +++ b/meta-agl-bsp/meta-rcar-gen3-adas/recipes-bsp/si-tools/files/si-init.service @@ -0,0 +1,10 @@ +[Unit] +Description=Initialize Si468x radio +ConditionPathExists=/sys/firmware/devicetree/base/si468x@0/compatible + +[Service] +Type=oneshot +ExecStart=/usr/bin/si_init + +[Install] +WantedBy=sysinit.target |