t210: MTC cleanup
1. Correct MTC weak function definitions. 2. Correct MTC message in case no training data is present. BUG=None BRANCH=None TEST=Compiles successfully and boots to kernel prompt on smaug. Change-Id: Iba3c994982da947af3fbd2d7e9a06dff7947f2b9 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Id: ce9a4cd7d824acd0da5615b33319869f6cf1cd56 Original-Change-Id: I037439246709c8ec0ec7f12ea109cbe0ae1073ae Original-Signed-off-by: Furquan Shaikh <furquan@google.com> Original-Reviewed-on: https://chromium-review.googlesource.com/278027 Original-Trybot-Ready: Furquan Shaikh <furquan@chromium.org> Original-Tested-by: Furquan Shaikh <furquan@chromium.org> Original-Reviewed-by: Tom Warren <twarren@nvidia.com> Original-Reviewed-by: Stefan Reinauer <reinauer@chromium.org> Original-Reviewed-by: Patrick Georgi <pgeorgi@chromium.org> Original-Commit-Queue: Furquan Shaikh <furquan@chromium.org> Reviewed-on: http://review.coreboot.org/10780 Reviewed-by: Furquan Shaikh <furquan@google.com> Tested-by: build bot (Jenkins)
This commit is contained in:
parent
cc828514ce
commit
5bcf8d637b
|
@ -29,7 +29,7 @@ void soc_add_mtc(struct lb_header *header);
|
|||
|
||||
#else
|
||||
|
||||
static inline int tegra210_run_mtc(void) { return -1; }
|
||||
static inline int tegra210_run_mtc(void) { return 0; }
|
||||
static inline void soc_add_mtc(struct lb_header *header) {}
|
||||
|
||||
#endif /* CONFIG_HAVE_MTC */
|
||||
|
|
|
@ -156,7 +156,7 @@ static void tegra210_cpu_init(device_t cpu)
|
|||
{
|
||||
if (cpu_is_bsp())
|
||||
if (tegra210_run_mtc() != 0)
|
||||
printk(BIOS_ERR, "MTC: Training failed\n");
|
||||
printk(BIOS_ERR, "MTC: No training data.\n");
|
||||
}
|
||||
|
||||
static const struct cpu_device_id ids[] = {
|
||||
|
|
Loading…
Reference in New Issue