summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPengyu Luo <mitltlatltl@gmail.com>2025-01-14 01:51:25 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-01-17 12:38:43 +0100
commit06c47f203222c93dbec85950d976637aedd54514 (patch)
treeaf8864ab247302b6fa2f34f6e4c8b7a8d80cfac1
parent66e0ea341a2a78d14336117f19763bd9be26d45d (diff)
usb: typec: ucsi: Add a macro definition for UCSI v1.0
Many platforms from Qualcomm(before X elite) still use UCSI v1.0, part of them hardcoded the version number to dsdt, add this for them. Signed-off-by: Pengyu Luo <mitltlatltl@gmail.com> Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Link: https://lore.kernel.org/r/20250113175131.590683-1-mitltlatltl@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/typec/ucsi/ucsi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/typec/ucsi/ucsi.h b/drivers/usb/typec/ucsi/ucsi.h
index 5ff369c24a2f..82735eb34f0e 100644
--- a/drivers/usb/typec/ucsi/ucsi.h
+++ b/drivers/usb/typec/ucsi/ucsi.h
@@ -30,6 +30,7 @@ struct dentry;
#define UCSIv2_MESSAGE_OUT 272
/* UCSI versions */
+#define UCSI_VERSION_1_0 0x0100
#define UCSI_VERSION_1_1 0x0110
#define UCSI_VERSION_1_2 0x0120
#define UCSI_VERSION_2_0 0x0200