blob: a0805030ea4636efc7379fb5ee93c1b56394aff1 [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
huang lin2de748f2015-11-17 14:20:28 +08006#include <dm.h>
7#include <asm/io.h>
Kever Yang9fbe17c2019-03-28 11:01:23 +08008#include <asm/arch-rockchip/uart.h>
9#include <asm/arch-rockchip/sdram_rk3036.h>
huang lin2de748f2015-11-17 14:20:28 +080010
huang lin2de748f2015-11-17 14:20:28 +080011void get_ddr_config(struct rk3036_ddr_config *config)
12{
13 /* K4B4G1646Q config */
14 config->ddr_type = 3;
15 config->rank = 2;
16 config->cs0_row = 15;
17 config->cs1_row = 15;
18
19 /* 8bank */
20 config->bank = 3;
21 config->col = 10;
22
23 /* 16bit bw */
24 config->bw = 1;
25}