Skip to content

Commit f541efa

Browse files
digetxthierryreding
authored andcommitted
memory: tegra: Print a brief info message about EMC timings
During boot print how many memory timings got the driver and what's the RAM code. This is a very useful information when something is wrong with boards memory timing. Suggested-by: Marc Dietrich <[email protected]> Signed-off-by: Dmitry Osipenko <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent c72396f commit f541efa

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/memory/tegra/tegra20-emc.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,13 @@ static int tegra_emc_load_timings_from_dt(struct tegra_emc *emc,
368368
sort(emc->timings, emc->num_timings, sizeof(*timing), cmp_timings,
369369
NULL);
370370

371+
dev_info(emc->dev,
372+
"got %u timings for RAM code %u (min %luMHz max %luMHz)\n",
373+
emc->num_timings,
374+
tegra_read_ram_code(),
375+
emc->timings[0].rate / 1000000,
376+
emc->timings[emc->num_timings - 1].rate / 1000000);
377+
371378
return 0;
372379
}
373380

0 commit comments

Comments
 (0)