blob: 7a05e58988353c7ebaeb315c520c61061cd8d48d [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0
Stefan Roese5ffceb82015-03-26 15:36:56 +01002/*
3 * Copyright (C) Marvell International Ltd. and its affiliates
Stefan Roese5ffceb82015-03-26 15:36:56 +01004 */
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 */
22int 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}