ARM: zynq: Read memory size setting from DT
OF_CONTROL is setup by default and memory reading is done via DT. Remove all config files with memory references. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
ce0335f2b4
commit
d9f317fd0d
@ -100,7 +100,6 @@ int checkboard(void)
|
||||
|
||||
int dram_init(void)
|
||||
{
|
||||
#if CONFIG_IS_ENABLED(OF_CONTROL)
|
||||
int node;
|
||||
fdt_addr_t addr;
|
||||
fdt_size_t size;
|
||||
@ -118,9 +117,6 @@ int dram_init(void)
|
||||
return -1;
|
||||
}
|
||||
gd->ram_size = size;
|
||||
#else
|
||||
gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
|
||||
#endif
|
||||
zynq_ddrc_init();
|
||||
|
||||
return 0;
|
||||
|
@ -10,8 +10,6 @@
|
||||
#ifndef __CONFIG_ZYNQ_MICROZED_H
|
||||
#define __CONFIG_ZYNQ_MICROZED_H
|
||||
|
||||
#define CONFIG_SYS_SDRAM_SIZE (1024 * 1024 * 1024)
|
||||
|
||||
#define CONFIG_SYS_NO_FLASH
|
||||
|
||||
#include <configs/zynq-common.h>
|
||||
|
@ -10,8 +10,6 @@
|
||||
#ifndef __CONFIG_ZYNQ_PICOZED_H
|
||||
#define __CONFIG_ZYNQ_PICOZED_H
|
||||
|
||||
#define CONFIG_SYS_SDRAM_SIZE (1024 * 1024 * 1024)
|
||||
|
||||
#define CONFIG_SYS_NO_FLASH
|
||||
|
||||
#define CONFIG_ZYNQ_USB
|
||||
|
@ -10,8 +10,6 @@
|
||||
#ifndef __CONFIG_ZYNQ_ZC70X_H
|
||||
#define __CONFIG_ZYNQ_ZC70X_H
|
||||
|
||||
#define CONFIG_SYS_SDRAM_SIZE (1024 * 1024 * 1024)
|
||||
|
||||
#define CONFIG_SYS_NO_FLASH
|
||||
|
||||
#define CONFIG_ZYNQ_USB
|
||||
|
@ -10,8 +10,6 @@
|
||||
#ifndef __CONFIG_ZYNQ_ZC770_H
|
||||
#define __CONFIG_ZYNQ_ZC770_H
|
||||
|
||||
#define CONFIG_SYS_SDRAM_SIZE (1024 * 1024 * 1024)
|
||||
|
||||
#define CONFIG_SYS_NO_FLASH
|
||||
|
||||
#if defined(CONFIG_ZC770_XM012)
|
||||
|
@ -10,8 +10,6 @@
|
||||
#ifndef __CONFIG_ZYNQ_ZED_H
|
||||
#define __CONFIG_ZYNQ_ZED_H
|
||||
|
||||
#define CONFIG_SYS_SDRAM_SIZE (512 * 1024 * 1024)
|
||||
|
||||
#define CONFIG_SYS_NO_FLASH
|
||||
|
||||
#define CONFIG_ZYNQ_USB
|
||||
|
@ -11,8 +11,6 @@
|
||||
#ifndef __CONFIG_ZYNQ_ZYBO_H
|
||||
#define __CONFIG_ZYNQ_ZYBO_H
|
||||
|
||||
#define CONFIG_SYS_SDRAM_SIZE (512 * 1024 * 1024)
|
||||
|
||||
#define CONFIG_SYS_NO_FLASH
|
||||
|
||||
#define CONFIG_ZYNQ_USB
|
||||
|
Loading…
Reference in New Issue
Block a user