xilfpga.c 468 B

123456789101112131415161718192021222324
  1. /*
  2. * Imagination Technologies MIPSfpga platform code
  3. *
  4. * Copyright (C) 2016, Imagination Technologies Ltd.
  5. *
  6. * Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>
  7. *
  8. * SPDX-License-Identifier: GPL-2.0+
  9. *
  10. */
  11. #include <common.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. }