Merge tag 'mips-pull-2020-10-07' of https://gitlab.denx.de/u-boot/custodians/u-boot...
[platform/kernel/u-boot.git] / board / Marvell / octeon_ebb7304 / board.c
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Copyright (C) 2020 Stefan Roese <sr@denx.de>
4  */
5
6 #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
16 static struct ddr_conf board_ddr_conf[] = {
17          OCTEON_EBB7304_DDR_CONFIGURATION
18 };
19
20 struct 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 }