summaryrefslogtreecommitdiff
path: root/src/soc/rockchip
diff options
context:
space:
mode:
authorJulius Werner <jwerner@chromium.org>2016-08-19 16:35:22 -0700
committerJulius Werner <jwerner@chromium.org>2016-08-27 01:16:47 +0200
commit329031fdedb332f75b2d3ce6c165bb62d9631600 (patch)
tree5fde66e307d9f66e2fe949f09741863aa71b2faa /src/soc/rockchip
parent3c814b2e2b8e053da352f4746a4914fb43af09d7 (diff)
downloadcoreboot-329031fdedb332f75b2d3ce6c165bb62d9631600.tar.xz
gru: Make SDRAM parameters individual struct files in CBFS
This patch changes Gru SDRAM parameters from structures that just get compiled into the romstage to individual CBFS files. This allows us to only load the parameter set we need for the board we're booting from flash, which reduces our boot time and the SRAM memory footprint required to hold the romstage. TEST=Booted Kevin. Change-Id: Ie88a515cbdb19a794ca0a230a56bcc82bed1e550 Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/16274 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/soc/rockchip')
-rw-r--r--src/soc/rockchip/rk3399/include/soc/sdram.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/soc/rockchip/rk3399/include/soc/sdram.h b/src/soc/rockchip/rk3399/include/soc/sdram.h
index 5c7273bcc1..1ec6d3958c 100644
--- a/src/soc/rockchip/rk3399/include/soc/sdram.h
+++ b/src/soc/rockchip/rk3399/include/soc/sdram.h
@@ -16,7 +16,7 @@
#ifndef __SOC_ROCKCHIP_RK3399_SDRAM_H__
#define __SOC_ROCKCHIP_RK3399_SDRAM_H__
-#include <stddef.h>
+#include <types.h>
enum {
DDR3 = 3,
@@ -183,8 +183,6 @@ struct rk3399_sdram_params {
void sdram_init(const struct rk3399_sdram_params *sdram_params);
u32 sdram_get_ram_code(void);
const struct rk3399_sdram_params *get_sdram_config(void);
-const struct rk3399_sdram_params
- *get_default_sdram_config(unsigned char dramtype);
size_t sdram_size_mb(void);
#endif