From 5f650fa6ad5d31ef5d8c332be0991bd730f552d4 Mon Sep 17 00:00:00 2001 From: Svyatoslav Ryhel Date: Tue, 25 Apr 2023 10:57:20 +0300 Subject: 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 Reviewed-by: Simon Glass --- include/dm/uclass-id.h | 1 + include/extcon.h | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 include/extcon.h (limited to 'include') diff --git a/include/dm/uclass-id.h b/include/dm/uclass-id.h index 5386c3faf9f..307ad6931ca 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 00000000000..d060f5a3c1f --- /dev/null +++ b/include/extcon.h @@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright (C) 2023 Svyatoslav Ryhel + */ + +#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 -- cgit v1.2.3