dram_init.c 343 B

1234567891011121314151617
  1. /*
  2. * Copyright (C) 2015 Andreas Bießmann <andreas@biessmann.org>
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #include <common.h>
  7. DECLARE_GLOBAL_DATA_PTR;
  8. int dram_init(void)
  9. {
  10. /* check for the maximum amount of memory possible on AP7000 devices */
  11. gd->ram_size = get_ram_size(
  12. (void *)CONFIG_SYS_SDRAM_BASE,
  13. (256<<20));
  14. return 0;
  15. }