blob: 1b49526fba4f2dbc230c5ad45982054ea98d454f [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Lukasz Majewskibe44b182017-01-27 23:16:29 +01002/*
3 * Copyright (C) 2016-2017
4 * Lukasz Majewski, DENX Software Engineering, lukma@denx.de
Lukasz Majewskibe44b182017-01-27 23:16:29 +01005 */
6
7#include <common.h>
Simon Glassdb229612019-08-01 09:46:42 -06008#include <env.h>
Simon Glassa7b51302019-11-14 12:57:46 -07009#include <init.h>
Simon Glass36736182019-11-14 12:57:24 -070010#include <serial.h>
Lukasz Majewskibe44b182017-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 Majewskibe44b182017-01-27 23:16:29 +010014#include <asm/arch/sys_proto.h>
Simon Glass3ba929a2020-10-30 21:38:53 -060015#include <asm/global_data.h>
Lukasz Majewskibe44b182017-01-27 23:16:29 +010016#include <asm/gpio.h>
Lukasz Majewskibe44b182017-01-27 23:16:29 +010017
18DECLARE_GLOBAL_DATA_PTR;
19
Lukasz Majewskibe44b182017-01-27 23:16:29 +010020int dram_init(void)
21{
22 gd->ram_size = imx_ddr_size();
23
24 return 0;
25}
26
Lukasz Majewskibe44b182017-01-27 23:16:29 +010027int board_init(void)
28{
29 /* address of boot parameters */
30 gd->bd->bi_boot_params = PHYS_SDRAM + 0x100;
31
Lukasz Majewskibe44b182017-01-27 23:16:29 +010032 return 0;
33}
34
35int board_late_init(void)
36{
Simon Glass6a38e412017-08-03 12:22:09 -060037 env_set("board_name", "mccmon6");
Lukasz Majewskibe44b182017-01-27 23:16:29 +010038
39 return 0;
40}
41
42int checkboard(void)
43{
44 puts("Board: MCCMON6\n");
45
46 return 0;
47}