Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Stefan Roese | 5ffceb8 | 2015-03-26 15:36:56 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) Marvell International Ltd. and its affiliates |
Stefan Roese | 5ffceb8 | 2015-03-26 15:36:56 +0100 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #include <common.h> |
| 7 | #include <i2c.h> |
| 8 | #include <spl.h> |
| 9 | #include <asm/io.h> |
| 10 | #include <asm/arch/cpu.h> |
| 11 | #include <asm/arch/soc.h> |
| 12 | |
| 13 | #include "ddr3_init.h" |
| 14 | |
| 15 | /* |
| 16 | * Name: ddr3_tip_init_silicon |
| 17 | * Desc: initiate silicon parameters |
| 18 | * Args: |
| 19 | * Notes: |
| 20 | * Returns: required value |
| 21 | */ |
| 22 | int ddr3_silicon_init(void) |
| 23 | { |
| 24 | int status; |
| 25 | static int init_done; |
| 26 | |
| 27 | if (init_done == 1) |
| 28 | return MV_OK; |
| 29 | |
| 30 | status = ddr3_tip_init_a38x(0, 0); |
| 31 | if (MV_OK != status) { |
| 32 | printf("DDR3 A38x silicon init - FAILED 0x%x\n", status); |
| 33 | return status; |
| 34 | } |
| 35 | |
| 36 | init_done = 1; |
| 37 | |
| 38 | return MV_OK; |
| 39 | } |