evb-rk3399.c 426 B

123456789101112131415161718192021222324252627
  1. /*
  2. * (C) Copyright 2016 Rockchip Electronics Co., Ltd
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. */
  6. #include <common.h>
  7. #include <asm/armv8/mmu.h>
  8. DECLARE_GLOBAL_DATA_PTR;
  9. int board_init(void)
  10. {
  11. return 0;
  12. }
  13. int dram_init(void)
  14. {
  15. gd->ram_size = 0x80000000;
  16. return 0;
  17. }
  18. void dram_init_banksize(void)
  19. {
  20. /* Reserve 0x200000 for ATF bl31 */
  21. gd->bd->bi_dram[0].start = 0x200000;
  22. gd->bd->bi_dram[0].size = 0x80000000;
  23. }