1 // SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause
3 * Copyright (C) 2018, STMicroelectronics - All Rights Reserved
10 DECLARE_GLOBAL_DATA_PTR;
18 ret = uclass_get_device(UCLASS_RAM, 0, &dev);
20 debug("RAM init failed: %d\n", ret);
23 ret = ram_get_info(dev, &ram);
25 debug("Cannot get RAM size: %d\n", ret);
28 debug("RAM init base=%lx, size=%x\n", ram.base, ram.size);
30 gd->ram_size = ram.size;