3 * Martin Winistoerfer, martinwinistoerfer@gmx.ch.
5 * See file CREDITS for list of people who contributed to this
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
27 * Discription: For generic board specific functions
35 #define SRAM_SIZE 1024000L /* 1M RAM available*/
37 #if defined(__APPLE__)
38 /* Leading underscore on symbols */
40 #else /* No leading character on symbols */
45 * Macros to generate global absolutes.
47 #define GEN_SYMNAME(str) SYM_CHAR #str
48 #define GEN_VALUE(str) #str
49 #define GEN_ABS(name, value) \
50 asm (".globl " GEN_SYMNAME(name)); \
51 asm (GEN_SYMNAME(name) " = " GEN_VALUE(value))
58 puts ("Board: ### No HW ID - assuming CMI board\n");
65 long int initdram(int board_type)
67 return (SRAM_SIZE); /* We currently have a static size adapted for cmi board. */
71 * Absolute environment address for linker file.
73 GEN_ABS(env_start, CFG_ENV_OFFSET + CFG_FLASH_BASE);