aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSvyatoslav Ryhel <clamor95@gmail.com>2023-04-25 10:57:20 +0300
committerTom Rini <trini@konsulko.com>2023-05-02 14:23:34 -0400
commit5f650fa6ad5d31ef5d8c332be0991bd730f552d4 (patch)
treef7a025df4780504e25cbc6931fd4a780850061a5 /include
parent021e303492ccfdf58425bedb13c1621367cc5cc7 (diff)
downloadu-boot-5f650fa6ad5d31ef5d8c332be0991bd730f552d4.zip
u-boot-5f650fa6ad5d31ef5d8c332be0991bd730f552d4.tar.gz
u-boot-5f650fa6ad5d31ef5d8c332be0991bd730f552d4.tar.bz2
dm: extcon: add an uclass for extcon
Add a new simple uclass for extcon. Currently all setup is done in the probe. Uclass struct and ops are empty for now. Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/dm/uclass-id.h1
-rw-r--r--include/extcon.h19
2 files changed, 20 insertions, 0 deletions
diff --git a/include/dm/uclass-id.h b/include/dm/uclass-id.h
index 5386c3fa..307ad69 100644
--- a/include/dm/uclass-id.h
+++ b/include/dm/uclass-id.h
@@ -56,6 +56,7 @@ enum uclass_id {
UCLASS_EFI_MEDIA, /* Devices provided by UEFI firmware */
UCLASS_ETH, /* Ethernet device */
UCLASS_ETH_PHY, /* Ethernet PHY device */
+ UCLASS_EXTCON, /* External Connector Class */
UCLASS_FIRMWARE, /* Firmware */
UCLASS_FPGA, /* FPGA device */
UCLASS_FUZZING_ENGINE, /* Fuzzing engine */
diff --git a/include/extcon.h b/include/extcon.h
new file mode 100644
index 0000000..d060f5a
--- /dev/null
+++ b/include/extcon.h
@@ -0,0 +1,19 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright (C) 2023 Svyatoslav Ryhel <clamor95@gmail.com>
+ */
+
+#ifndef __EXTCON_H
+#define __EXTCON_H
+
+struct udevice;
+
+/**
+ * struct extcon_uc_plat - Platform data the uclass stores about each device
+ *
+ * To be filled
+ */
+struct extcon_uc_plat {
+};
+
+#endif