usb: typec: ucsi: Add a macro definition for UCSI v1.0
authorPengyu Luo <mitltlatltl@gmail.com>
Mon, 13 Jan 2025 17:51:25 +0000 (01:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Jan 2025 11:38:43 +0000 (12:38 +0100)
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>
drivers/usb/typec/ucsi/ucsi.h

index 5ff369c24a2fc445e8559201d563c31d83b2c876..82735eb34f0e335c769799465bb40a8d40a75961 100644 (file)
@@ -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