mamoj.c 508 B

1234567891011121314151617181920212223242526
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (C) 2018 Simone CIANNI <simone.cianni@bticino.it>
  4. * Copyright (C) 2018 Raffaele RECALCATI <raffaele.recalcati@bticino.it>
  5. * Copyright (C) 2018 Jagan Teki <jagan@amarulasolutions.com>
  6. */
  7. #include <common.h>
  8. #include <asm/arch/sys_proto.h>
  9. DECLARE_GLOBAL_DATA_PTR;
  10. int board_init(void)
  11. {
  12. /* Address of boot parameters */
  13. gd->bd->bi_boot_params = PHYS_SDRAM + 0x100;
  14. return 0;
  15. }
  16. int dram_init(void)
  17. {
  18. gd->ram_size = imx_ddr_size();
  19. return 0;
  20. }