mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-04 03:43:19 +09:00
![Stefan Roese](/assets/img/avatar_default.png)
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>
27 lines
500 B
C
27 lines
500 B
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (C) 2020 Stefan Roese <sr@denx.de>
|
|
*/
|
|
|
|
#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;
|
|
}
|