blob: e03e029f1ddfb2995022c3c4fb11f1ac46c4ee85 [file] [log] [blame]
Dinh Nguyend94e18e2019-04-23 16:55:03 -05001// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2019 Intel Corporation <www.intel.com>
4 */
5
Dinh Nguyend94e18e2019-04-23 16:55:03 -05006#include <dm.h>
7#include <dm/test.h>
8
9static 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));
Rick Chena7af2862019-08-28 18:46:05 +080016 ut_assertok(cache_enable(dev));
17 ut_assertok(cache_disable(dev));
Dinh Nguyend94e18e2019-04-23 16:55:03 -050018
19 return 0;
20}
Simon Glass1a92f832024-08-22 07:57:48 -060021DM_TEST(dm_test_reset, UTF_SCAN_FDT);