summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorT Michael Turney <mturney@codeaurora.org>2018-04-12 13:36:40 -0700
committerPatrick Georgi <pgeorgi@google.com>2018-04-17 10:46:13 +0000
commit809fa7b5c2df4bf926753a9e35f4330954ac1426 (patch)
treec18a6fb03a29932ce094edcdeceed9da0f547d37 /src/mainboard
parent79f1c3e2a5c28e7d6b308165428c15188419d1a3 (diff)
cbfs: Add cbfs_boot_load_file()
Generalize cbfs_boot_load_struct() by passing in CBFS type Change-Id: I6e5f845cb4ce5b00f01a39619919f85e39028f19 Signed-off-by: T Michael Turney <mturney@codeaurora.org> Reviewed-on: https://review.coreboot.org/25648 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/gru/sdram_configs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainboard/google/gru/sdram_configs.c b/src/mainboard/google/gru/sdram_configs.c
index ac5c427027..2091c36b7a 100644
--- a/src/mainboard/google/gru/sdram_configs.c
+++ b/src/mainboard/google/gru/sdram_configs.c
@@ -67,8 +67,8 @@ const struct rk3399_sdram_params *get_sdram_config()
if (ramcode >= ARRAY_SIZE(sdram_configs) ||
!snprintf(config_file, sizeof(config_file), "%s-%d",
sdram_configs[ramcode], get_sdram_target_mhz()) ||
- (cbfs_boot_load_struct(config_file, &params,
- sizeof(params)) != sizeof(params)))
+ (cbfs_boot_load_file(config_file, &params, sizeof(params),
+ CBFS_TYPE_STRUCT) != sizeof(params)))
die("Cannot load SDRAM parameter file!");
return &params;