Merge tag 'xilinx-for-v2021.04-rc3' of https://gitlab.denx.de/u-boot/custodians/u...
[platform/kernel/u-boot.git] / board / liebherr / mccmon6 / mccmon6.c
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/global_data.h>
16 #include <asm/gpio.h>
17
18 DECLARE_GLOBAL_DATA_PTR;
19
20 int dram_init(void)
21 {
22         gd->ram_size = imx_ddr_size();
23
24         return 0;
25 }
26
27 int board_init(void)
28 {
29         /* address of boot parameters */
30         gd->bd->bi_boot_params = PHYS_SDRAM + 0x100;
31
32         return 0;
33 }
34
35 int board_late_init(void)
36 {
37         env_set("board_name", "mccmon6");
38
39         return 0;
40 }
41
42 int checkboard(void)
43 {
44         puts("Board: MCCMON6\n");
45
46         return 0;
47 }