]>
Commit | Line | Data |
---|---|---|
83d290c5 | 1 | // SPDX-License-Identifier: GPL-2.0+ |
a562e1bd WD |
2 | /* |
3 | * (C) Copyright 2000-2003 | |
4 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. | |
a562e1bd WD |
5 | */ |
6 | ||
d678a59d | 7 | #include <common.h> |
49acd56e | 8 | #include <init.h> |
401d1c4f | 9 | #include <asm/global_data.h> |
6706424d | 10 | #include <asm/immap.h> |
a562e1bd | 11 | |
088454cd | 12 | DECLARE_GLOBAL_DATA_PTR; |
a562e1bd WD |
13 | |
14 | int checkboard (void) | |
15 | { | |
16 | puts ("Board: "); | |
17 | puts ("senTec COBRA5272 Board\n"); | |
18 | return 0; | |
19 | }; | |
20 | ||
f1683aa7 | 21 | int dram_init(void) |
a562e1bd | 22 | { |
6706424d | 23 | volatile sdramctrl_t *sdp = (sdramctrl_t *) (MMAP_SDRAM); |
a562e1bd WD |
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 | ||
aa6e94de | 31 | gd->ram_size = CFG_SYS_SDRAM_SIZE * 1024 * 1024; |
088454cd SG |
32 | |
33 | return 0; | |
a562e1bd WD |
34 | }; |
35 | ||
49acd56e | 36 | int testdram(void) |
a562e1bd WD |
37 | { |
38 | /* TODO: XXX XXX XXX */ | |
39 | printf ("DRAM test not implemented!\n"); | |
40 | ||
41 | return (0); | |
42 | } |