mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
fix compilation
Change-Id: I95c72aba7ec2822531ac57aefc7990b49059c577
This commit is contained in:
parent
3ce822c6b4
commit
f426d46a0e
1 changed files with 2 additions and 0 deletions
|
@ -146,8 +146,10 @@ int tegra210_run_mtc(void)
|
||||||
struct cbfsf mtc_file;
|
struct cbfsf mtc_file;
|
||||||
|
|
||||||
void * const mtc = (void *)(uintptr_t)CONFIG_MTC_ADDRESS;
|
void * const mtc = (void *)(uintptr_t)CONFIG_MTC_ADDRESS;
|
||||||
|
#if !IS_ENABLED(CONFIG_HAVE_MTC_TABLES)
|
||||||
void *dvfs_table;
|
void *dvfs_table;
|
||||||
size_t (*mtc_fw)(void **dvfs_table) = (void *)mtc;
|
size_t (*mtc_fw)(void **dvfs_table) = (void *)mtc;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (cbfs_boot_locate(&mtc_file, "tegra_mtc.bin", NULL)) {
|
if (cbfs_boot_locate(&mtc_file, "tegra_mtc.bin", NULL)) {
|
||||||
printk(BIOS_ERR, "MTC file not found: tegra_mtc.bin\n");
|
printk(BIOS_ERR, "MTC file not found: tegra_mtc.bin\n");
|
||||||
|
|
Loading…
Add table
Reference in a new issue