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 octeon_ddr_conf_table_get(int * count,int * def_ddr_freq)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 } 27