blob: fbaad6e757715096ad5ae891da997ed32b5c94d5 [file] [log] [blame]
Varun Wadekar28dcc212016-07-20 10:28:51 -07001/*
2 * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
3 *
dp-armfa3cf0b2017-05-03 09:38:09 +01004 * SPDX-License-Identifier: BSD-3-Clause
Varun Wadekar28dcc212016-07-20 10:28:51 -07005 */
6
7#ifndef __TEGRA_PLATFORM_H__
8#define __TEGRA_PLATFORM_H__
9
10#include <sys/cdefs.h>
11
12/*
Varun Wadekarfc9b91e2017-03-10 09:53:37 -080013 * Tegra chip major/minor version
14 */
15uint32_t tegra_get_chipid_major(void);
16uint32_t tegra_get_chipid_minor(void);
17
18/*
Varun Wadekar28dcc212016-07-20 10:28:51 -070019 * Tegra chip identifiers
20 */
Varun Wadekarfdcdfe22017-04-13 14:12:49 -070021uint8_t tegra_chipid_is_t132(void);
22uint8_t tegra_chipid_is_t210(void);
23uint8_t tegra_chipid_is_t186(void);
24
Varun Wadekar28dcc212016-07-20 10:28:51 -070025
26/*
27 * Tegra platform identifiers
28 */
29uint8_t tegra_platform_is_silicon(void);
30uint8_t tegra_platform_is_qt(void);
31uint8_t tegra_platform_is_emulation(void);
32uint8_t tegra_platform_is_fpga(void);
33
34#endif /* __TEGRA_PLATFORM_H__ */