2018-09-19 10:43:46 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2018 Xilinx, Inc.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <common.h>
|
|
|
|
#include <dm.h>
|
|
|
|
#include <syscon.h>
|
|
|
|
#include <asm/test.h>
|
|
|
|
#include <dm/test.h>
|
2020-07-19 16:15:37 +00:00
|
|
|
#include <test/test.h>
|
2018-09-19 10:43:46 +00:00
|
|
|
#include <test/ut.h>
|
|
|
|
|
|
|
|
/* Base test of firmware probe */
|
|
|
|
static int dm_test_firmware_probe(struct unit_test_state *uts)
|
|
|
|
{
|
|
|
|
struct udevice *dev;
|
|
|
|
|
|
|
|
ut_assertok(uclass_get_device_by_name(UCLASS_FIRMWARE,
|
|
|
|
"sandbox-firmware", &dev));
|
|
|
|
return 0;
|
|
|
|
}
|
2020-07-29 01:41:12 +00:00
|
|
|
DM_TEST(dm_test_firmware_probe, UT_TESTF_SCAN_FDT);
|