Rajan Vaja | b3b2ddb | 2018-09-19 03:43:46 -0700 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright (C) 2018 Xilinx, Inc. |
| 4 | */ |
| 5 | |
Rajan Vaja | b3b2ddb | 2018-09-19 03:43:46 -0700 | [diff] [blame] | 6 | #include <dm.h> |
| 7 | #include <syscon.h> |
| 8 | #include <asm/test.h> |
| 9 | #include <dm/test.h> |
Simon Glass | 75c4d41 | 2020-07-19 10:15:37 -0600 | [diff] [blame] | 10 | #include <test/test.h> |
Rajan Vaja | b3b2ddb | 2018-09-19 03:43:46 -0700 | [diff] [blame] | 11 | #include <test/ut.h> |
| 12 | |
| 13 | /* Base test of firmware probe */ |
| 14 | static int dm_test_firmware_probe(struct unit_test_state *uts) |
| 15 | { |
| 16 | struct udevice *dev; |
| 17 | |
| 18 | ut_assertok(uclass_get_device_by_name(UCLASS_FIRMWARE, |
| 19 | "sandbox-firmware", &dev)); |
| 20 | return 0; |
| 21 | } |
Simon Glass | 974dccd | 2020-07-28 19:41:12 -0600 | [diff] [blame] | 22 | DM_TEST(dm_test_firmware_probe, UT_TESTF_SCAN_FDT); |