greybus: Added a sysfs entry to power down the SVC

Added a sysfs entry called pwr_off. When a "1" is passed to it,
it sends a GB_SVC_TYPE_PWR_DOWN command to the SVC, powering it down
along with the switch and INA231 chips.

Testing Done: Tested on EVT1_5, works.

Signed-off-by: Georgi Dobrev <dobrev_georgi@projectara.com>
This commit is contained in:
Georgi Dobrev 2016-03-24 13:37:21 +02:00 • committed by Akash Choudhari
commit 88a3011e91
3 changed files with 30 additions and 0 deletions