xilfpga.c 465 B

1234567891011121314151617181920212223
  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. DECLARE_GLOBAL_DATA_PTR;
  12. /* initialize the DDR Controller and PHY */
  13. int dram_init(void)
  14. {
  15. /* MIG IP block is smart and doesn't need SW
  16. * to do any init */
  17. gd->ram_size = CONFIG_SYS_SDRAM_SIZE; /* in bytes */
  18. return 0;
  19. }