spl.c 363 B

1234567891011121314151617181920212223
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (C) 2020 SiFive, Inc
  4. * Pragnesh Patel <pragnesh.patel@sifive.com>
  5. */
  6. #include <dm.h>
  7. #include <log.h>
  8. int spl_soc_init(void)
  9. {
  10. int ret;
  11. struct udevice *dev;
  12. /* DDR init */
  13. ret = uclass_get_device(UCLASS_RAM, 0, &dev);
  14. if (ret) {
  15. debug("DRAM init failed: %d\n", ret);
  16. return ret;
  17. }
  18. return 0;
  19. }