rockchip: update and move CONFIG_NR_DRAM_BANKS to common header
Most of SoCs have 2 banks after we enable OP-TEE, for those still only have 1 bank soc, it's OK to use 2 bank for the other one have size 0 if not used. Change-Id: Ifa0ee3e12960794c71398636e525ef853eae7870 Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
This commit is contained in:
parent
5f601e7c0e
commit
839aff5094
|
|
@ -38,7 +38,6 @@
|
|||
#define CONFIG_BOUNCE_BUFFER
|
||||
|
||||
#define CONFIG_SYS_SDRAM_BASE 0
|
||||
#define CONFIG_NR_DRAM_BANKS 2
|
||||
#define SDRAM_MAX_SIZE 0xff000000
|
||||
#define SDRAM_BANK_SIZE (2UL << 30)
|
||||
#define CONFIG_PREBOOT
|
||||
|
|
|
|||
|
|
@ -35,9 +35,8 @@
|
|||
#define CONFIG_BOUNCE_BUFFER
|
||||
|
||||
#define CONFIG_SYS_SDRAM_BASE 0x60000000
|
||||
#define CONFIG_NR_DRAM_BANKS 2
|
||||
#define SDRAM_BANK_SIZE (512UL << 20UL)
|
||||
#define SDRAM_MAX_SIZE (CONFIG_NR_DRAM_BANKS * SDRAM_BANK_SIZE)
|
||||
#define SDRAM_MAX_SIZE 0x80000000
|
||||
|
||||
#define CONFIG_SPI_FLASH
|
||||
#define CONFIG_SPI
|
||||
|
|
|
|||
|
|
@ -17,9 +17,8 @@
|
|||
#define CONFIG_SYS_CBSIZE 256
|
||||
|
||||
#define CONFIG_SYS_SDRAM_BASE 0x60000000
|
||||
#define CONFIG_NR_DRAM_BANKS 1
|
||||
#define SDRAM_BANK_SIZE (1024UL << 20UL)
|
||||
#define SDRAM_MAX_SIZE CONFIG_NR_DRAM_BANKS * SDRAM_BANK_SIZE
|
||||
#define SDRAM_MAX_SIZE 0x80000000
|
||||
|
||||
#define CONFIG_SYS_TIMER_COUNTS_DOWN
|
||||
|
||||
|
|
|
|||
|
|
@ -38,7 +38,6 @@
|
|||
|
||||
#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1
|
||||
#define CONFIG_SYS_SDRAM_BASE 0x60000000
|
||||
#define CONFIG_NR_DRAM_BANKS 2
|
||||
#define SDRAM_MAX_SIZE 0x80000000
|
||||
|
||||
#define CONFIG_SPI_FLASH
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@
|
|||
#include "rockchip-common.h"
|
||||
|
||||
#define CONFIG_SKIP_LOWLEVEL_INIT_ONLY
|
||||
#define CONFIG_NR_DRAM_BANKS 1
|
||||
#define CONFIG_SYS_MALLOC_LEN (32 << 20)
|
||||
#define CONFIG_SYS_CBSIZE 1024
|
||||
|
||||
|
|
@ -44,7 +43,6 @@
|
|||
#define CONFIG_BOUNCE_BUFFER
|
||||
|
||||
#define CONFIG_SYS_SDRAM_BASE 0x60000000
|
||||
#define CONFIG_NR_DRAM_BANKS 1
|
||||
#define SDRAM_BANK_SIZE (2UL << 30)
|
||||
#define SDRAM_MAX_SIZE 0x80000000
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@
|
|||
#define CONFIG_BOUNCE_BUFFER
|
||||
|
||||
#define CONFIG_SYS_SDRAM_BASE 0x60000000
|
||||
#define CONFIG_NR_DRAM_BANKS 2
|
||||
#define SDRAM_BANK_SIZE (512UL << 20UL)
|
||||
#define SDRAM_MAX_SIZE 0x80000000
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
#include "rockchip-common.h"
|
||||
|
||||
#define CONFIG_SKIP_LOWLEVEL_INIT_ONLY
|
||||
#define CONFIG_NR_DRAM_BANKS 1
|
||||
#define CONFIG_SYS_MALLOC_LEN (32 << 20)
|
||||
#define CONFIG_SYS_CBSIZE 1024
|
||||
|
||||
|
|
@ -48,7 +47,6 @@
|
|||
#define CONFIG_SPL_FS_LOAD_PAYLOAD_NAME "u-boot.img"
|
||||
|
||||
#define CONFIG_SYS_SDRAM_BASE 0
|
||||
#define CONFIG_NR_DRAM_BANKS 1
|
||||
#define SDRAM_BANK_SIZE (2UL << 30)
|
||||
#define SDRAM_MAX_SIZE 0xfe000000
|
||||
|
||||
|
|
|
|||
|
|
@ -38,7 +38,6 @@
|
|||
#define CONFIG_BOUNCE_BUFFER
|
||||
|
||||
#define CONFIG_SYS_SDRAM_BASE 0
|
||||
#define CONFIG_NR_DRAM_BANKS 2
|
||||
#define SDRAM_MAX_SIZE 0xff000000
|
||||
#define SDRAM_BANK_SIZE (2UL << 30)
|
||||
#define CONFIG_PREBOOT
|
||||
|
|
|
|||
|
|
@ -42,7 +42,6 @@
|
|||
/* FAT sd card locations. */
|
||||
#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1
|
||||
#define CONFIG_SYS_SDRAM_BASE 0
|
||||
#define CONFIG_NR_DRAM_BANKS 1
|
||||
#define SDRAM_MAX_SIZE 0xff000000
|
||||
|
||||
#define CONFIG_SPI_FLASH
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@
|
|||
|
||||
#define CONFIG_SYS_SDRAM_BASE 0
|
||||
#define SDRAM_MAX_SIZE 0xff000000
|
||||
#define CONFIG_NR_DRAM_BANKS 1
|
||||
#define CONFIG_BAUDRATE 115200
|
||||
#define CONFIG_SYS_MALLOC_LEN (32 << 20)
|
||||
#define CONFIG_SYS_CBSIZE 1024
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@
|
|||
|
||||
#include "rockchip-common.h"
|
||||
|
||||
#define CONFIG_NR_DRAM_BANKS 1
|
||||
#define CONFIG_SYS_MALLOC_LEN (32 << 20)
|
||||
#define CONFIG_SYS_CBSIZE 1024
|
||||
#define CONFIG_SKIP_LOWLEVEL_INIT
|
||||
|
|
@ -52,7 +51,6 @@
|
|||
#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1
|
||||
#define CONFIG_SYS_SDRAM_BASE 0
|
||||
#define SDRAM_MAX_SIZE 0xf8000000
|
||||
#define CONFIG_NR_DRAM_BANKS 1
|
||||
|
||||
#define CONFIG_SF_DEFAULT_SPEED 20000000
|
||||
|
||||
|
|
|
|||
|
|
@ -14,6 +14,8 @@
|
|||
|
||||
#define CONFIG_SYS_NS16550_MEM32
|
||||
|
||||
#define CONFIG_NR_DRAM_BANKS 2
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
#include <config_distro_defaults.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@
|
|||
|
||||
#define CONFIG_SYS_SDRAM_BASE 0x60000000
|
||||
#define SDRAM_MAX_SIZE 0x80000000
|
||||
#define CONFIG_NR_DRAM_BANKS 1
|
||||
#define CONFIG_SYS_TEXT_BASE CONFIG_SYS_SDRAM_BASE
|
||||
#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_TEXT_BASE + 0x100000)
|
||||
#define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + 0x2000000)
|
||||
|
|
|
|||
Loading…
Reference in New Issue