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