blob: 6d2af59289ebefdca1ab81843b95130dae209e81 [file] [log] [blame]
Varun Wadekar28dcc212016-07-20 10:28:51 -07001/*
Antonio Nino Diaz4b32e622018-08-16 16:52:57 +01002 * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
Varun Wadekar28dcc212016-07-20 10:28:51 -07003 *
dp-armfa3cf0b2017-05-03 09:38:09 +01004 * SPDX-License-Identifier: BSD-3-Clause
Varun Wadekar28dcc212016-07-20 10:28:51 -07005 */
6
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +00007#ifndef TEGRA_PLATFORM_H
8#define TEGRA_PLATFORM_H
Varun Wadekar28dcc212016-07-20 10:28:51 -07009
Antonio Nino Diaz4b32e622018-08-16 16:52:57 +010010#include <cdefs.h>
Anthony Zhou70262ef2017-03-22 14:37:04 +080011#include <stdbool.h>
Varun Wadekar28dcc212016-07-20 10:28:51 -070012
13/*
Varun Wadekarfc9b91e2017-03-10 09:53:37 -080014 * Tegra chip major/minor version
15 */
16uint32_t tegra_get_chipid_major(void);
17uint32_t tegra_get_chipid_minor(void);
18
19/*
Varun Wadekar28dcc212016-07-20 10:28:51 -070020 * Tegra chip identifiers
21 */
Varun Wadekarfdcdfe22017-04-13 14:12:49 -070022uint8_t tegra_chipid_is_t132(void);
23uint8_t tegra_chipid_is_t210(void);
24uint8_t tegra_chipid_is_t186(void);
25
Varun Wadekar28dcc212016-07-20 10:28:51 -070026
27/*
28 * Tegra platform identifiers
29 */
Anthony Zhou70262ef2017-03-22 14:37:04 +080030bool tegra_platform_is_silicon(void);
31bool tegra_platform_is_qt(void);
32bool tegra_platform_is_emulation(void);
33bool tegra_platform_is_linsim(void);
34bool tegra_platform_is_fpga(void);
35bool tegra_platform_is_unit_fpga(void);
36bool tegra_platform_is_virt_dev_kit(void);
Varun Wadekar28dcc212016-07-20 10:28:51 -070037
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000038#endif /* TEGRA_PLATFORM_H */