From 63051d62b894b47e6aa3f59756be46513a450742 Mon Sep 17 00:00:00 2001 From: Stefan Roese Date: Wed, 2 Sep 2020 08:29:10 +0200 Subject: mips: octeon: octeon_ebb7304: Add DDR4 support This patch adds the board specific configuration (struct) for the Octeon 3 EBB7304 EVK. This struct is ported from the 2013er Cavium / Marvell U-Boot repository. Also, the Octeon RAM driver is enabled in the board defconfig for its usage. Tested with one and two DIMMs on the EBB7304 EVK (8 & 16 GiB). Signed-off-by: Stefan Roese --- include/configs/octeon_common.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/configs/octeon_common.h b/include/configs/octeon_common.h index 530f02ad3cb..541b81801ee 100644 --- a/include/configs/octeon_common.h +++ b/include/configs/octeon_common.h @@ -7,13 +7,18 @@ #ifndef __OCTEON_COMMON_H__ #define __OCTEON_COMMON_H__ -/* No DDR init yet -> run in L2 cache with limited resources */ +#if defined(CONFIG_RAM_OCTEON) +#define CONFIG_SYS_MALLOC_LEN (16 << 20) +#define CONFIG_SYS_INIT_SP_OFFSET 0x20100000 +#else +/* No DDR init -> run in L2 cache with limited resources */ #define CONFIG_SYS_MALLOC_LEN (256 << 10) +#define CONFIG_SYS_INIT_SP_OFFSET 0x00180000 +#endif + #define CONFIG_SYS_SDRAM_BASE 0xffffffff80000000 #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + (1 << 20)) -#define CONFIG_SYS_INIT_SP_OFFSET 0x180000 - #endif /* __OCTEON_COMMON_H__ */ -- cgit v1.3.1 From 1471560b2c375c6e667acc896e99fa271100d299 Mon Sep 17 00:00:00 2001 From: Stefan Roese Date: Thu, 20 Aug 2020 07:22:04 +0200 Subject: mips: octeon: octeon_common.h: Increase CONFIG_SYS_BOOTM_LEN Increase CONFIG_SYS_BOOTM_LEN to 64MiB for Linux kernel booting. Signed-off-by: Stefan Roese --- include/configs/octeon_common.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/configs/octeon_common.h b/include/configs/octeon_common.h index 541b81801ee..109ef4064de 100644 --- a/include/configs/octeon_common.h +++ b/include/configs/octeon_common.h @@ -21,4 +21,6 @@ #define CONFIG_SYS_LOAD_ADDR (CONFIG_SYS_SDRAM_BASE + (1 << 20)) +#define CONFIG_SYS_BOOTM_LEN (64 << 20) /* 64M */ + #endif /* __OCTEON_COMMON_H__ */ -- cgit v1.3.1