blob: 71f75d877d2f342bf3104ce05e303d5b1429d8d5 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Lukasz Majewski11bd5e72017-01-27 23:16:29 +01002/*
3 * Copyright (C) 2016-2017
4 * Lukasz Majewski, DENX Software Engineering, lukma@denx.de
Lukasz Majewski11bd5e72017-01-27 23:16:29 +01005 */
6
7#include <common.h>
Simon Glass3a7d5572019-08-01 09:46:42 -06008#include <env.h>
Simon Glass52559322019-11-14 12:57:46 -07009#include <init.h>
Simon Glassb03e0512019-11-14 12:57:24 -070010#include <serial.h>
Lukasz Majewski11bd5e72017-01-27 23:16:29 +010011#include <asm/arch/clock.h>
12#include <asm/arch/iomux.h>
13#include <asm/arch/imx-regs.h>
Lukasz Majewski11bd5e72017-01-27 23:16:29 +010014#include <asm/arch/sys_proto.h>
15#include <asm/gpio.h>
Lukasz Majewski11bd5e72017-01-27 23:16:29 +010016
17DECLARE_GLOBAL_DATA_PTR;
18
Lukasz Majewski11bd5e72017-01-27 23:16:29 +010019int dram_init(void)
20{
21 gd->ram_size = imx_ddr_size();
22
23 return 0;
24}
25
Lukasz Majewski11bd5e72017-01-27 23:16:29 +010026int board_init(void)
27{
28 /* address of boot parameters */
29 gd->bd->bi_boot_params = PHYS_SDRAM + 0x100;
30
Lukasz Majewski11bd5e72017-01-27 23:16:29 +010031 return 0;
32}
33
34int board_late_init(void)
35{
Simon Glass382bee52017-08-03 12:22:09 -060036 env_set("board_name", "mccmon6");
Lukasz Majewski11bd5e72017-01-27 23:16:29 +010037
38 return 0;
39}
40
41int checkboard(void)
42{
43 puts("Board: MCCMON6\n");
44
45 return 0;
46}