m54451evb.c (52c411805c090999f015df8bdf8016fb684746d0) | m54451evb.c (088454cde245b4d431ce0181be8b3cbceea059d6) |
---|---|
1/* 2 * (C) Copyright 2000-2003 3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4 * 5 * Copyright (C) 2004-2008, 2012 Freescale Semiconductor, Inc. 6 * TsiChung Liew (Tsi-Chung.Liew@freescale.com) 7 * 8 * SPDX-License-Identifier: GPL-2.0+ --- 12 unchanged lines hidden (view full) --- 21 * need to to: 22 * Check serial flash size. if 2mb evb, else 8mb demo 23 */ 24 puts("Board: "); 25 puts("Freescale M54451 EVB\n"); 26 return 0; 27}; 28 | 1/* 2 * (C) Copyright 2000-2003 3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. 4 * 5 * Copyright (C) 2004-2008, 2012 Freescale Semiconductor, Inc. 6 * TsiChung Liew (Tsi-Chung.Liew@freescale.com) 7 * 8 * SPDX-License-Identifier: GPL-2.0+ --- 12 unchanged lines hidden (view full) --- 21 * need to to: 22 * Check serial flash size. if 2mb evb, else 8mb demo 23 */ 24 puts("Board: "); 25 puts("Freescale M54451 EVB\n"); 26 return 0; 27}; 28 |
29phys_size_t initdram(void) | 29int initdram(void) |
30{ 31 u32 dramsize; 32#ifdef CONFIG_CF_SBF 33 /* 34 * Serial Boot: The dram is already initialized in start.S 35 * only require to return DRAM size 36 */ 37 dramsize = CONFIG_SYS_SDRAM_SIZE * 0x100000; --- 39 unchanged lines hidden (view full) --- 77 out_be32(&sdram->sdmr, CONFIG_SYS_SDRAM_MODE); 78 __asm__("nop"); 79 80 out_be32(&sdram->sdcr, 81 (CONFIG_SYS_SDRAM_CTRL & ~0x80000000) | 0x10000000); 82 83 udelay(100); 84#endif | 30{ 31 u32 dramsize; 32#ifdef CONFIG_CF_SBF 33 /* 34 * Serial Boot: The dram is already initialized in start.S 35 * only require to return DRAM size 36 */ 37 dramsize = CONFIG_SYS_SDRAM_SIZE * 0x100000; --- 39 unchanged lines hidden (view full) --- 77 out_be32(&sdram->sdmr, CONFIG_SYS_SDRAM_MODE); 78 __asm__("nop"); 79 80 out_be32(&sdram->sdcr, 81 (CONFIG_SYS_SDRAM_CTRL & ~0x80000000) | 0x10000000); 82 83 udelay(100); 84#endif |
85 return (dramsize); | 85 gd->ram_size = dramsize; 86 87 return 0; |
86}; 87 88int testdram(void) 89{ 90 /* TODO: XXX XXX XXX */ 91 printf("DRAM test not implemented!\n"); 92 93 return (0); 94} | 88}; 89 90int testdram(void) 91{ 92 /* TODO: XXX XXX XXX */ 93 printf("DRAM test not implemented!\n"); 94 95 return (0); 96} |