1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * (C) Copyright 2000-2003
4  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5  */
6 
7 #include <common.h>
8 #include <init.h>
9 #include <asm/global_data.h>
10 #include <asm/immap.h>
11 
12 DECLARE_GLOBAL_DATA_PTR;
13 
checkboard(void)14 int checkboard (void)
15 {
16 	puts ("Board: ");
17 	puts ("senTec COBRA5272 Board\n");
18 	return 0;
19 };
20 
dram_init(void)21 int dram_init(void)
22 {
23 	volatile sdramctrl_t *sdp = (sdramctrl_t *) (MMAP_SDRAM);
24 
25 	sdp->sdram_sdtr = 0xf539;
26 	sdp->sdram_sdcr = 0x4211;
27 
28 	/* Dummy write to start SDRAM */
29 	*((volatile unsigned long *) 0) = 0;
30 
31 	gd->ram_size = CONFIG_SYS_SDRAM_SIZE * 1024 * 1024;
32 
33 	return 0;
34 };
35 
testdram(void)36 int testdram(void)
37 {
38 	/* TODO: XXX XXX XXX */
39 	printf ("DRAM test not implemented!\n");
40 
41 	return (0);
42 }
43