xilfpga.c 483 B

123456789101112131415161718192021222324
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Imagination Technologies MIPSfpga platform code
  4. *
  5. * Copyright (C) 2016, Imagination Technologies Ltd.
  6. *
  7. * Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
  8. *
  9. */
  10. #include <common.h>
  11. #include <init.h>
  12. DECLARE_GLOBAL_DATA_PTR;
  13. /* initialize the DDR Controller and PHY */
  14. int dram_init(void)
  15. {
  16. /* MIG IP block is smart and doesn't need SW
  17. * to do any init */
  18. gd->ram_size = CONFIG_SYS_SDRAM_SIZE; /* in bytes */
  19. return 0;
  20. }