3 * Martin Winistoerfer, martinwinistoerfer@gmx.ch.
5 * SPDX-License-Identifier: GPL-2.0+
11 * Discription: For generic board specific functions
19 #define SRAM_SIZE 1024000L /* 1M RAM available*/
21 #if defined(__APPLE__)
22 /* Leading underscore on symbols */
24 #else /* No leading character on symbols */
29 * Macros to generate global absolutes.
31 #define GEN_SYMNAME(str) SYM_CHAR #str
32 #define GEN_VALUE(str) #str
33 #define GEN_ABS(name, value) \
34 asm (".globl " GEN_SYMNAME(name)); \
35 asm (GEN_SYMNAME(name) " = " GEN_VALUE(value))
42 puts ("Board: ### No HW ID - assuming CMI board\n");
49 phys_size_t initdram(int board_type)
51 return (SRAM_SIZE); /* We currently have a static size adapted for cmi board. */
55 * Absolute environment address for linker file.
57 GEN_ABS(env_start, CONFIG_ENV_OFFSET + CONFIG_SYS_FLASH_BASE);