mccmon6.c 734 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (C) 2016-2017
  4. * Lukasz Majewski, DENX Software Engineering, lukma@denx.de
  5. */
  6. #include <common.h>
  7. #include <env.h>
  8. #include <init.h>
  9. #include <serial.h>
  10. #include <asm/arch/clock.h>
  11. #include <asm/arch/iomux.h>
  12. #include <asm/arch/imx-regs.h>
  13. #include <asm/arch/sys_proto.h>
  14. #include <asm/global_data.h>
  15. #include <asm/gpio.h>
  16. DECLARE_GLOBAL_DATA_PTR;
  17. int dram_init(void)
  18. {
  19. gd->ram_size = imx_ddr_size();
  20. return 0;
  21. }
  22. int board_init(void)
  23. {
  24. /* address of boot parameters */
  25. gd->bd->bi_boot_params = PHYS_SDRAM + 0x100;
  26. return 0;
  27. }
  28. int board_late_init(void)
  29. {
  30. env_set("board_name", "mccmon6");
  31. return 0;
  32. }
  33. int checkboard(void)
  34. {
  35. puts("Board: MCCMON6\n");
  36. return 0;
  37. }