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