Add means to control STM power-on from userland 16/189516/6
authorMichal Sidor <m.sidor@samsung.com>
Tue, 18 Sep 2018 08:21:27 +0000 (10:21 +0200)
committerAlexander Mazuruk <a.mazuruk@samsung.com>
Wed, 10 Oct 2018 07:00:43 +0000 (09:00 +0200)
commit67924f1c296461bf76eb5d9ad24cdfc63c300a94
treea4cca035070049660e333148f19cf550938bea56
parenta61026cf7d1b577d5eb7181fec282b7b3a6845a0
Add means to control STM power-on from userland

This patch adds a shell script `muxpi-power` which can power the STM on
or off. The patch also contains a systemd service that runs `muxpi-power
on` during system boot. It is a fairly universal (while there's systemd,
there's a way) and convenient (compared to formerly used u-boot script
modification) way of powering STM on.

Change-Id: Ia96e5ef75bc70a5b25ef34633157939e7f11554a
Signed-off-by: Michal Sidor <m.sidor@samsung.com>
sw/nanopi/power/muxpi-power [new file with mode: 0755]
sw/nanopi/power/systemd/muxpi-power.service [new file with mode: 0644]
sw/nanopi/stm/systemd/stm.service