blob: f37bccfe4a83336c2e72968fd326cd16fcbb616f [file] [log] [blame]
Rajan Vajab3b2ddb2018-09-19 03:43:46 -07001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2018 Xilinx, Inc.
4 */
5
Tom Riniabb9a042024-05-18 20:20:43 -06006#include <common.h>
Rajan Vajab3b2ddb2018-09-19 03:43:46 -07007#include <dm.h>
8#include <syscon.h>
9#include <asm/test.h>
10#include <dm/test.h>
Simon Glass75c4d412020-07-19 10:15:37 -060011#include <test/test.h>
Rajan Vajab3b2ddb2018-09-19 03:43:46 -070012#include <test/ut.h>
13
14/* Base test of firmware probe */
15static int dm_test_firmware_probe(struct unit_test_state *uts)
16{
17 struct udevice *dev;
18
19 ut_assertok(uclass_get_device_by_name(UCLASS_FIRMWARE,
20 "sandbox-firmware", &dev));
21 return 0;
22}
Simon Glass974dccd2020-07-28 19:41:12 -060023DM_TEST(dm_test_firmware_probe, UT_TESTF_SCAN_FDT);