xref: /openbmc/u-boot/board/freescale/mx6memcal/mx6memcal.c (revision 83d290c56fab2d38cd1ab4c4cc7099559c1d5046)
1*83d290c5STom Rini // SPDX-License-Identifier: GPL-2.0+
2baefb63aSEric Nelson /*
3baefb63aSEric Nelson  * mx6memcal board support - provides a minimal, UART-only
4baefb63aSEric Nelson  * U-Boot that's capable of running a memory test.
5baefb63aSEric Nelson  *
6baefb63aSEric Nelson  * Copyright (C) 2016 Nelson Integration, LLC
7baefb63aSEric Nelson  * Author: Eric Nelson <eric@nelint.com>
8baefb63aSEric Nelson  */
9baefb63aSEric Nelson 
10baefb63aSEric Nelson #include <common.h>
11baefb63aSEric Nelson #include <asm/arch/sys_proto.h>
12baefb63aSEric Nelson 
13baefb63aSEric Nelson DECLARE_GLOBAL_DATA_PTR;
14baefb63aSEric Nelson 
board_init(void)15baefb63aSEric Nelson int board_init(void)
16baefb63aSEric Nelson {
17baefb63aSEric Nelson 	return 0;
18baefb63aSEric Nelson }
19baefb63aSEric Nelson 
checkboard(void)20baefb63aSEric Nelson int checkboard(void)
21baefb63aSEric Nelson {
22baefb63aSEric Nelson 	puts("Board: mx6memcal\n");
23baefb63aSEric Nelson 	return 0;
24baefb63aSEric Nelson }
25baefb63aSEric Nelson 
dram_init(void)26baefb63aSEric Nelson int dram_init(void)
27baefb63aSEric Nelson {
28baefb63aSEric Nelson 	gd->ram_size = imx_ddr_size();
29baefb63aSEric Nelson 	return 0;
30baefb63aSEric Nelson }
31baefb63aSEric Nelson 
32