1 // SPDX-License-Identifier: GPL-2.0+
5 * (C) Copyright 2017 Angelo Dureghello <angelo@sysam.it>
11 #include <asm/immap.h>
13 #include <fsl_esdhc.h>
15 DECLARE_GLOBAL_DATA_PTR;
21 * Check serial flash size. if 2mb evb, else 8mb demo
24 puts("Sysam stmark2\n");
33 * Serial Boot: The dram is already initialized in start.S
34 * only require to return DRAM size
36 dramsize = CONFIG_SYS_SDRAM_SIZE * 0x100000;
38 gd->ram_size = dramsize;