blob: 6a5fbbb8e62a3ce38299ecc99d85b5077a0b14a0 [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>
Lukasz Majewski11bd5e72017-01-27 23:16:29 +01009#include <asm/arch/clock.h>
10#include <asm/arch/iomux.h>
11#include <asm/arch/imx-regs.h>
Lukasz Majewski11bd5e72017-01-27 23:16:29 +010012#include <asm/arch/sys_proto.h>
13#include <asm/gpio.h>
Lukasz Majewski11bd5e72017-01-27 23:16:29 +010014
15DECLARE_GLOBAL_DATA_PTR;
16
Lukasz Majewski11bd5e72017-01-27 23:16:29 +010017int dram_init(void)
18{
19 gd->ram_size = imx_ddr_size();
20
21 return 0;
22}
23
Lukasz Majewski11bd5e72017-01-27 23:16:29 +010024int board_init(void)
25{
26 /* address of boot parameters */
27 gd->bd->bi_boot_params = PHYS_SDRAM + 0x100;
28
Lukasz Majewski11bd5e72017-01-27 23:16:29 +010029 return 0;
30}
31
32int board_late_init(void)
33{
Simon Glass382bee52017-08-03 12:22:09 -060034 env_set("board_name", "mccmon6");
Lukasz Majewski11bd5e72017-01-27 23:16:29 +010035
36 return 0;
37}
38
39int checkboard(void)
40{
41 puts("Board: MCCMON6\n");
42
43 return 0;
44}