summaryrefslogtreecommitdiffstats
path: root/arch/arm/cpu/armv7/uniphier/dram_init.c
blob: 7de657b7af91d53bddd4639cc77b8603f0548d60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
 * Copyright (C) 2012-2014 Panasonic Corporation
 *   Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
 *
 * SPDX-License-Identifier:	GPL-2.0+
 */

#include <common.h>
#include <asm/arch/led.h>

int umc_init(void);
void enable_dpll_ssc(void);

int dram_init(void)
{
	DECLARE_GLOBAL_DATA_PTR;
	gd->ram_size = CONFIG_SYS_SDRAM_SIZE;

#ifdef CONFIG_DRAM_INIT
	led_write(B, 4, , );

	{
		int res;

		res = umc_init();
		if (res < 0)
			return res;
	}
	led_write(B, 5, , );

	enable_dpll_ssc();
#endif

	led_write(B, 6, , );

	return 0;
}
OpenPOWER on IntegriCloud