blob: d5acc4fe27f785ca03e4e70f1e186219866106cb [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
huang lin2de748f2015-11-17 14:20:28 +08002/*
3 * (C) Copyright 2015 Rockchip Electronics Co., Ltd
huang lin2de748f2015-11-17 14:20:28 +08004 */
5
6#include <common.h>
7#include <dm.h>
8#include <asm/io.h>
9#include <asm/arch/uart.h>
10#include <asm/arch/sdram_rk3036.h>
11
huang lin2de748f2015-11-17 14:20:28 +080012void get_ddr_config(struct rk3036_ddr_config *config)
13{
14 /* K4B4G1646Q config */
15 config->ddr_type = 3;
16 config->rank = 2;
17 config->cs0_row = 15;
18 config->cs1_row = 15;
19
20 /* 8bank */
21 config->bank = 3;
22 config->col = 10;
23
24 /* 16bit bw */
25 config->bw = 1;
26}