summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/greybus_protocols.h
diff options
context:
space:
mode:
authorGeorgi Dobrev <dobrev_georgi@projectara.com>2016-03-24 13:37:21 +0200
committerAkash Choudhari <akashtc@google.com>2016-04-01 14:41:49 -0700
commit88a3011e91f7c557798301d47f830320580795cf (patch)
treeb97ca845f74a2053459d96a8fe87c8619e5fd0be /drivers/staging/greybus/greybus_protocols.h
parentd9984cf0f24860bc3a9d3c8f48d90a148827c5c6 (diff)
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>
Diffstat (limited to 'drivers/staging/greybus/greybus_protocols.h')
-rw-r--r--drivers/staging/greybus/greybus_protocols.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/greybus/greybus_protocols.h b/drivers/staging/greybus/greybus_protocols.h
index 06888e029473..a160e73a76a9 100644
--- a/drivers/staging/greybus/greybus_protocols.h
+++ b/drivers/staging/greybus/greybus_protocols.h
@@ -798,6 +798,7 @@ struct gb_spi_transfer_response {
#define GB_SVC_TYPE_INTF_EJECT 0x11
#define GB_SVC_TYPE_KEY_EVENT 0x12
#define GB_SVC_TYPE_PING 0x13
+#define GB_SVC_TYPE_PWR_DOWN 0x1d
/*
* SVC version request/response has the same payload as