m5272c3.c (56df091d391f74bbf2dc2f7931f9f3c8f23529e4) | m5272c3.c (6d0f6bcf337c5261c08fabe12982178c2c489d76) |
---|---|
1/* 2 * (C) Copyright 2000-2003 3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4 * 5 * See file CREDITS for list of people who contributed to this 6 * project. 7 * 8 * This program is free software; you can redistribute it and/or --- 26 unchanged lines hidden (view full) --- 35 volatile sdramctrl_t * sdp = (sdramctrl_t *)(MMAP_SDRAM); 36 37 sdp->sdram_sdtr = 0xf539; 38 sdp->sdram_sdcr = 0x4211; 39 40 /* Dummy write to start SDRAM */ 41 *((volatile unsigned long *)0) = 0; 42 | 1/* 2 * (C) Copyright 2000-2003 3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4 * 5 * See file CREDITS for list of people who contributed to this 6 * project. 7 * 8 * This program is free software; you can redistribute it and/or --- 26 unchanged lines hidden (view full) --- 35 volatile sdramctrl_t * sdp = (sdramctrl_t *)(MMAP_SDRAM); 36 37 sdp->sdram_sdtr = 0xf539; 38 sdp->sdram_sdcr = 0x4211; 39 40 /* Dummy write to start SDRAM */ 41 *((volatile unsigned long *)0) = 0; 42 |
43 return CFG_SDRAM_SIZE * 1024 * 1024; | 43 return CONFIG_SYS_SDRAM_SIZE * 1024 * 1024; |
44 }; 45 46int testdram (void) { 47 /* TODO: XXX XXX XXX */ 48 printf ("DRAM test not implemented!\n"); 49 50 return (0); 51} | 44 }; 45 46int testdram (void) { 47 /* TODO: XXX XXX XXX */ 48 printf ("DRAM test not implemented!\n"); 49 50 return (0); 51} |