m54418twr.c (52c411805c090999f015df8bdf8016fb684746d0) | m54418twr.c (088454cde245b4d431ce0181be8b3cbceea059d6) |
---|---|
1/* 2 * Copyright 2010-2012 Freescale Semiconductor, Inc. 3 * TsiChung Liew (Tsi-Chung.Liew@freescale.com) 4 * 5 * SPDX-License-Identifier: GPL-2.0+ 6 */ 7 8#include <common.h> --- 11 unchanged lines hidden (view full) --- 20 * need to to: 21 * Check serial flash size. if 2mb evb, else 8mb demo 22 */ 23 puts("Board: "); 24 puts("Freescale MCF54418 Tower System\n"); 25 return 0; 26}; 27 | 1/* 2 * Copyright 2010-2012 Freescale Semiconductor, Inc. 3 * TsiChung Liew (Tsi-Chung.Liew@freescale.com) 4 * 5 * SPDX-License-Identifier: GPL-2.0+ 6 */ 7 8#include <common.h> --- 11 unchanged lines hidden (view full) --- 20 * need to to: 21 * Check serial flash size. if 2mb evb, else 8mb demo 22 */ 23 puts("Board: "); 24 puts("Freescale MCF54418 Tower System\n"); 25 return 0; 26}; 27 |
28phys_size_t initdram(void) | 28int initdram(void) |
29{ 30 u32 dramsize; 31 32#if defined(CONFIG_SERIAL_BOOT) 33 /* 34 * Serial Boot: The dram is already initialized in start.S 35 * only require to return DRAM size 36 */ --- 62 unchanged lines hidden (view full) --- 99 out_be32(&sdram->cr60, 0x0642C000); 100 out_be32(&sdram->cr61, 0x00000642); 101 asm("tpf"); 102 103 out_be32(&sdram->cr09, 0x01000100); 104 105 udelay(100); 106#endif | 29{ 30 u32 dramsize; 31 32#if defined(CONFIG_SERIAL_BOOT) 33 /* 34 * Serial Boot: The dram is already initialized in start.S 35 * only require to return DRAM size 36 */ --- 62 unchanged lines hidden (view full) --- 99 out_be32(&sdram->cr60, 0x0642C000); 100 out_be32(&sdram->cr61, 0x00000642); 101 asm("tpf"); 102 103 out_be32(&sdram->cr09, 0x01000100); 104 105 udelay(100); 106#endif |
107 return dramsize; | 107 gd->ram_size = dramsize; 108 109 return 0; |
108}; 109 110int testdram(void) 111{ 112 return 0; 113} | 110}; 111 112int testdram(void) 113{ 114 return 0; 115} |