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