blob: 611b18fa6a1c186a6196e84dc3dd5e8a4d80db12 [file] [log] [blame]
Stefan Roesea6f2ea42020-06-30 12:08:58 +02001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Copyright (C) 2020 Stefan Roese <sr@denx.de>
4 */
5
Stefan Roese82ba2782020-09-02 08:29:10 +02006#include <common.h>
7#include <dm.h>
8#include <ram.h>
9
10#include <mach/octeon_ddr.h>
11
12#include "board_ddr.h"
13
14#define EBB7304_DEF_DRAM_FREQ 800
15
16static struct ddr_conf board_ddr_conf[] = {
17 OCTEON_EBB7304_DDR_CONFIGURATION
18};
19
20struct ddr_conf *octeon_ddr_conf_table_get(int *count, int *def_ddr_freq)
21{
22 *count = ARRAY_SIZE(board_ddr_conf);
23 *def_ddr_freq = EBB7304_DEF_DRAM_FREQ;
24
25 return board_ddr_conf;
26}