blob: 63a0e01e34a0191706abd9b35ff821cb5b356974 [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>
Varun Wadekar28dcc212016-07-20 10:28:51 -070011
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
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000034#endif /* TEGRA_PLATFORM_H */