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