summaryrefslogtreecommitdiff
path: root/board/sysam/stmark2/stmark2.c
blob: 790199a640dfa87c60c155963742fbf8db671da4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// SPDX-License-Identifier: GPL-2.0+
/*
 * Board-specific init.
 *
 * (C) Copyright 2017 Angelo Dureghello <angelo@sysam.it>
 */

#include <common.h>
#include <spi.h>
#include <asm/io.h>
#include <asm/immap.h>
#include <mmc.h>
#include <fsl_esdhc.h>

DECLARE_GLOBAL_DATA_PTR;

int checkboard(void)
{
	/*
	 * need to to:
	 * Check serial flash size. if 2mb evb, else 8mb demo
	 */
	puts("Board: ");
	puts("Sysam stmark2\n");
	return 0;
}

int dram_init(void)
{
	u32 dramsize;

	/*
	 * Serial Boot: The dram is already initialized in start.S
	 * only require to return DRAM size
	 */
	dramsize = CONFIG_SYS_SDRAM_SIZE * 0x100000;

	gd->ram_size = dramsize;

	return 0;
}

int testdram(void)
{
	return 0;
}