1// SPDX-License-Identifier: GPL-2.0+
2/*
3 * (C) Copyright 2015 Rockchip Electronics Co., Ltd
4 */
5
6#include <dm.h>
7#include <asm/io.h>
8#include <asm/arch-rockchip/uart.h>
9#include <asm/arch-rockchip/sdram_rk3036.h>
10
11void 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}
26