1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright 2021 Asherah Connor <ashe@kivikakk.ee>
14 * Exercise the device enough to be satisfied the initialisation and DMA
18 static int dm_test_qfw_cpus(struct unit_test_state *uts)
22 ut_assertok(uclass_first_device_err(UCLASS_QFW, &dev));
23 ut_asserteq(5, qfw_online_cpus(dev));
28 DM_TEST(dm_test_qfw_cpus, UT_TESTF_SCAN_PDATA);
30 static int dm_test_qfw_firmware_list(struct unit_test_state *uts)
35 ut_assertok(uclass_first_device_err(UCLASS_QFW, &dev));
36 ut_assertok(qfw_read_firmware_list(dev));
37 ut_assertok_ptr((file = qfw_find_file(dev, "test-one")));
42 DM_TEST(dm_test_qfw_firmware_list, UT_TESTF_SCAN_PDATA);