1*83d290c5STom Rini // SPDX-License-Identifier: GPL-2.0+ 2a373024eSAngelo Dureghello /* 3a373024eSAngelo Dureghello * Board-specific init. 4a373024eSAngelo Dureghello * 5a373024eSAngelo Dureghello * (C) Copyright 2017 Angelo Dureghello <angelo@sysam.it> 6a373024eSAngelo Dureghello */ 7a373024eSAngelo Dureghello 8a373024eSAngelo Dureghello #include <common.h> 9a373024eSAngelo Dureghello #include <spi.h> 10a373024eSAngelo Dureghello #include <asm/io.h> 11a373024eSAngelo Dureghello #include <asm/immap.h> 12a373024eSAngelo Dureghello #include <mmc.h> 13a373024eSAngelo Dureghello #include <fsl_esdhc.h> 14a373024eSAngelo Dureghello 15a373024eSAngelo Dureghello DECLARE_GLOBAL_DATA_PTR; 16a373024eSAngelo Dureghello checkboard(void)17a373024eSAngelo Dureghelloint checkboard(void) 18a373024eSAngelo Dureghello { 19a373024eSAngelo Dureghello /* 20a373024eSAngelo Dureghello * need to to: 21a373024eSAngelo Dureghello * Check serial flash size. if 2mb evb, else 8mb demo 22a373024eSAngelo Dureghello */ 23a373024eSAngelo Dureghello puts("Board: "); 24a373024eSAngelo Dureghello puts("Sysam stmark2\n"); 25a373024eSAngelo Dureghello return 0; 26a373024eSAngelo Dureghello } 27a373024eSAngelo Dureghello dram_init(void)28a373024eSAngelo Dureghelloint dram_init(void) 29a373024eSAngelo Dureghello { 30a373024eSAngelo Dureghello u32 dramsize; 31a373024eSAngelo Dureghello 32a373024eSAngelo Dureghello /* 33a373024eSAngelo Dureghello * Serial Boot: The dram is already initialized in start.S 34a373024eSAngelo Dureghello * only require to return DRAM size 35a373024eSAngelo Dureghello */ 36a373024eSAngelo Dureghello dramsize = CONFIG_SYS_SDRAM_SIZE * 0x100000; 37a373024eSAngelo Dureghello 38a373024eSAngelo Dureghello gd->ram_size = dramsize; 39a373024eSAngelo Dureghello 40a373024eSAngelo Dureghello return 0; 41a373024eSAngelo Dureghello } 42a373024eSAngelo Dureghello testdram(void)43a373024eSAngelo Dureghelloint testdram(void) 44a373024eSAngelo Dureghello { 45a373024eSAngelo Dureghello return 0; 46a373024eSAngelo Dureghello } 47