1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2015 Google, Inc
12 DECLARE_GLOBAL_DATA_PTR;
14 /* Basic test of the ram uclass */
15 static int dm_test_ram_base(struct unit_test_state *uts)
20 ut_assertok(uclass_get_device(UCLASS_RAM, 0, &dev));
21 ut_assertok(ram_get_info(dev, &info));
22 ut_asserteq(0, info.base);
23 ut_asserteq(gd->ram_size, info.size);
27 DM_TEST(dm_test_ram_base, DM_TESTF_SCAN_PDATA | DM_TESTF_SCAN_FDT);