misc.c 280 B

12345678910111213141516
  1. /*
  2. * Copyright (C) 2012 Altera Corporation <www.altera.com>
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #include <common.h>
  7. #include <asm/io.h>
  8. DECLARE_GLOBAL_DATA_PTR;
  9. int dram_init(void)
  10. {
  11. gd->ram_size = get_ram_size((long *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE);
  12. return 0;
  13. }