Stefan Roese | a6f2ea4 | 2020-06-30 12:08:58 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright (C) 2020 Stefan Roese <sr@denx.de> |
| 4 | */ |
| 5 | |
Stefan Roese | 82ba278 | 2020-09-02 08:29:10 +0200 | [diff] [blame] | 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 | } |