diff options
| author | Tom Rini <[email protected]> | 2023-05-03 09:23:21 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-05-03 09:23:21 -0400 |
| commit | 1807c0c70a73c7697f32c04cad20ea9cd11b248e (patch) | |
| tree | 258d2fa7d274ed5048640ceef121841d49494784 /test | |
| parent | 021e303492ccfdf58425bedb13c1621367cc5cc7 (diff) | |
| parent | 8144210e750d42941eb8028fdfc4e027ef043d8f (diff) | |
Merge branch '2023-05-02-assorted-platform-updates-and-additions'
- Updates for starqltechn and other qualcomm platforms, hi3798mv200,
Broadcom Northstar, and mediatek platforms
- Drop omap5_uevm, and assorted TI platform updates
- Add MAX14526
Diffstat (limited to 'test')
| -rw-r--r-- | test/dm/Makefile | 1 | ||||
| -rw-r--r-- | test/dm/extcon.c | 21 |
2 files changed, 22 insertions, 0 deletions
diff --git a/test/dm/Makefile b/test/dm/Makefile index c8534b5cfa8..3799b1ae8fd 100644 --- a/test/dm/Makefile +++ b/test/dm/Makefile @@ -49,6 +49,7 @@ obj-$(CONFIG_DM_DSA) += dsa.o obj-$(CONFIG_ECDSA_VERIFY) += ecdsa.o obj-$(CONFIG_EFI_MEDIA_SANDBOX) += efi_media.o obj-$(CONFIG_DM_ETH) += eth.o +obj-$(CONFIG_EXTCON) += extcon.o ifneq ($(CONFIG_EFI_PARTITION),) obj-$(CONFIG_FASTBOOT_FLASH_MMC) += fastboot.o endif diff --git a/test/dm/extcon.c b/test/dm/extcon.c new file mode 100644 index 00000000000..6a4e22bfdc5 --- /dev/null +++ b/test/dm/extcon.c @@ -0,0 +1,21 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2023 Svyatoslav Ryhel <[email protected]> + */ + +#include <dm.h> +#include <dm/test.h> +#include <extcon.h> +#include <test/test.h> +#include <test/ut.h> + +static int dm_test_extcon(struct unit_test_state *uts) +{ + struct udevice *dev; + + ut_assertok(uclass_get_device_by_name(UCLASS_EXTCON, "extcon", &dev)); + + return 0; +} + +DM_TEST(dm_test_extcon, UT_TESTF_SCAN_FDT); |
