diff options
Diffstat (limited to 'roms/u-boot/arch/arm/cpu/armv7/socfpga/misc.c')
-rw-r--r-- | roms/u-boot/arch/arm/cpu/armv7/socfpga/misc.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/roms/u-boot/arch/arm/cpu/armv7/socfpga/misc.c b/roms/u-boot/arch/arm/cpu/armv7/socfpga/misc.c new file mode 100644 index 00000000..2f1c7160 --- /dev/null +++ b/roms/u-boot/arch/arm/cpu/armv7/socfpga/misc.c @@ -0,0 +1,16 @@ +/* + * Copyright (C) 2012 Altera Corporation <www.altera.com> + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#include <common.h> +#include <asm/io.h> + +DECLARE_GLOBAL_DATA_PTR; + +int dram_init(void) +{ + gd->ram_size = get_ram_size((long *)PHYS_SDRAM_1, PHYS_SDRAM_1_SIZE); + return 0; +} |