]> Git Repo - u-boot.git/blob - test/dm/cache.c
d2f3bfe2caf326c94abd0b28772c8a259a193046
[u-boot.git] / test / dm / cache.c
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Copyright (C) 2019 Intel Corporation <www.intel.com>
4  */
5
6 #include <dm.h>
7 #include <dm/test.h>
8
9 static int dm_test_reset(struct unit_test_state *uts)
10 {
11         struct udevice *dev_cache;
12         struct cache_info;
13
14         ut_assertok(uclass_get_device(UCLASS_CACHE, 0, &dev_cache));
15         ut_assertok(cache_get_info(dev, &info));
16         ut_assertok(cache_enable(dev));
17         ut_assertok(cache_disable(dev));
18
19         return 0;
20 }
21 DM_TEST(dm_test_reset, UT_TESTF_SCAN_FDT);
This page took 0.016657 seconds and 2 git commands to generate.