Simon Glass | d3e58e4 | 2015-07-06 12:54:32 -0600 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2015 Google, Inc |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | */ |
| 6 | |
| 7 | #include <common.h> |
| 8 | #include <dm.h> |
| 9 | #include <mmc.h> |
| 10 | #include <dm/test.h> |
| 11 | #include <test/ut.h> |
| 12 | |
| 13 | DECLARE_GLOBAL_DATA_PTR; |
| 14 | |
| 15 | /* |
| 16 | * Basic test of the mmc uclass. We could expand this by implementing an MMC |
| 17 | * stack for sandbox, or at least implementing the basic operation. |
| 18 | */ |
| 19 | static int dm_test_mmc_base(struct unit_test_state *uts) |
| 20 | { |
| 21 | struct udevice *dev; |
| 22 | |
| 23 | ut_assertok(uclass_get_device(UCLASS_MMC, 0, &dev)); |
| 24 | |
| 25 | return 0; |
| 26 | } |
| 27 | DM_TEST(dm_test_mmc_base, DM_TESTF_SCAN_PDATA | DM_TESTF_SCAN_FDT); |