summaryrefslogtreecommitdiffstats
path: root/src/soc/nvidia/tegra210/include/soc/mtc.h
blob: 25a4991b600fefc6ba1acee6eebdaacd52a3cd9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* SPDX-License-Identifier: GPL-2.0-only */

#ifndef __SOC_NVIDIA_TEGRA210_MTC_H__
#define __SOC_NVIDIA_TEGRA210_MTC_H__

#include <boot/coreboot_tables.h>

#if CONFIG(HAVE_MTC)

int tegra210_run_mtc(void);
void soc_add_mtc(struct lb_header *header);

#else

static inline int tegra210_run_mtc(void) { return 0; }
static inline void soc_add_mtc(struct lb_header *header) {}

#endif /* CONFIG_HAVE_MTC */

#endif /* __SOC_NVIDIA_TEGRA210_MTC_H__ */