summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/greybus_protocols.h
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2016-03-29 18:56:11 -0400
committerGreg Kroah-Hartman <gregkh@google.com>2016-03-30 14:23:19 -0700
commit50ad4163a54cb373012b330d078e4ad17b6e6c95 (patch)
tree61aca598b95f2353e1e84639f38b08d739f56e31 /drivers/staging/greybus/greybus_protocols.h
parentac72cfbe6937f00c1fb334001c89ea26254ef430 (diff)
greybus: interface: clean up DME attribute handling
Move all DME defines to the interface code and rename them using common prefixes (e.g. DME_T and DME_TOSHIBA). The DDB L1 attributes are defined by MIPI and the Ara attributes are currently Toshiba specific so move them all out of the Greybus protocol header. Also rename the Greybus init-status values using a GB_INIT prefix. Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/greybus_protocols.h')
-rw-r--r--drivers/staging/greybus/greybus_protocols.h18
1 files changed, 6 insertions, 12 deletions
diff --git a/drivers/staging/greybus/greybus_protocols.h b/drivers/staging/greybus/greybus_protocols.h
index bb7b01f82ea0..06888e029473 100644
--- a/drivers/staging/greybus/greybus_protocols.h
+++ b/drivers/staging/greybus/greybus_protocols.h
@@ -884,18 +884,12 @@ struct gb_svc_dme_peer_set_response {
__le16 result_code;
} __packed;
-/* Attributes for peer get/set operations */
-#define DME_ATTR_SELECTOR_INDEX_NULL 0
-/* FIXME: remove ES2 support and DME_ATTR_T_TST_SRC_INCREMENT */
-#define DME_ATTR_T_TST_SRC_INCREMENT 0x4083
-#define DME_ATTR_ES3_INIT_STATUS 0x6101
-
-/* Return value from init-status attributes listed above */
-#define DME_DIS_SPI_BOOT_STARTED 0x02
-#define DME_DIS_TRUSTED_SPI_BOOT_FINISHED 0x03
-#define DME_DIS_UNTRUSTED_SPI_BOOT_FINISHED 0x04
-#define DME_DIS_BOOTROM_UNIPRO_BOOT_STARTED 0x06
-#define DME_DIS_BOOTROM_FALLBACK_UNIPRO_BOOT_STARTED 0x09
+/* Greybus init-status values, currently retrieved using DME peer gets. */
+#define GB_INIT_SPI_BOOT_STARTED 0x02
+#define GB_INIT_TRUSTED_SPI_BOOT_FINISHED 0x03
+#define GB_INIT_UNTRUSTED_SPI_BOOT_FINISHED 0x04
+#define GB_INIT_BOOTROM_UNIPRO_BOOT_STARTED 0x06
+#define GB_INIT_BOOTROM_FALLBACK_UNIPRO_BOOT_STARTED 0x09
struct gb_svc_route_create_request {
__u8 intf1_id;