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 /board/Marvell/octeon_ebb7304/board.c | |
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 'board/Marvell/octeon_ebb7304/board.c')
-rw-r--r-- | board/Marvell/octeon_ebb7304/board.c | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/board/Marvell/octeon_ebb7304/board.c b/board/Marvell/octeon_ebb7304/board.c index 56e50a9063..611b18fa6a 100644 --- a/board/Marvell/octeon_ebb7304/board.c +++ b/board/Marvell/octeon_ebb7304/board.c @@ -3,7 +3,24 @@ * Copyright (C) 2020 Stefan Roese <sr@denx.de> */ -/* - * Nothing included right now. Code will be added in follow-up - * patches. - */ +#include <common.h> +#include <dm.h> +#include <ram.h> + +#include <mach/octeon_ddr.h> + +#include "board_ddr.h" + +#define EBB7304_DEF_DRAM_FREQ 800 + +static struct ddr_conf board_ddr_conf[] = { + OCTEON_EBB7304_DDR_CONFIGURATION +}; + +struct ddr_conf *octeon_ddr_conf_table_get(int *count, int *def_ddr_freq) +{ + *count = ARRAY_SIZE(board_ddr_conf); + *def_ddr_freq = EBB7304_DEF_DRAM_FREQ; + + return board_ddr_conf; +} |