blob: 8c606463e45528f50781569d24a5f4b53d57fc80 [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
Tom Riniabb9a042024-05-18 20:20:43 -06006#include <common.h>
huang lin2de748f2015-11-17 14:20:28 +08007#include <dm.h>
8#include <asm/io.h>
Kever Yang9fbe17c2019-03-28 11:01:23 +08009#include <asm/arch-rockchip/uart.h>
10#include <asm/arch-rockchip/sdram_rk3036.h>
huang lin2de748f2015-11-17 14:20:28 +080011
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}