1 /* 2 * (C) Copyright 2015 Rockchip Electronics Co., Ltd 3 * 4 * SPDX-License-Identifier: GPL-2.0+ 5 */ 6 7 #include <common.h> 8 #include <dm.h> 9 #include <asm/io.h> 10 #include <asm/arch/uart.h> 11 #include <asm/arch/sdram_rk3036.h> 12 13 void get_ddr_config(struct rk3036_ddr_config *config) 14 { 15 /* K4B4G1646Q config */ 16 config->ddr_type = 3; 17 config->rank = 2; 18 config->cs0_row = 15; 19 config->cs1_row = 15; 20 21 /* 8bank */ 22 config->bank = 3; 23 config->col = 10; 24 25 /* 16bit bw */ 26 config->bw = 1; 27 } 28