diff options
author | Stefan Roese <sr@denx.de> | 2020-09-02 09:29:10 +0300 |
---|---|---|
committer | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2020-10-07 21:25:57 +0300 |
commit | 63051d62b894b47e6aa3f59756be46513a450742 (patch) | |
tree | 1bb4c102d300d17a81a6c7444e48e402a873a19d /include/configs/octeon_common.h | |
parent | 590d48e9d1cc3a32626643f4acdeb4a762d92616 (diff) | |
download | u-boot-63051d62b894b47e6aa3f59756be46513a450742.tar.xz |
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 <sr@denx.de>
Diffstat (limited to 'include/configs/octeon_common.h')
-rw-r--r-- | include/configs/octeon_common.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/include/configs/octeon_common.h b/include/configs/octeon_common.h index 530f02ad3c..541b81801e 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__ */ |