xref: /rk3399_ARM-atf/plat/nvidia/tegra/include/tegra_platform.h (revision ea6dec5db62f2b3b9709f26bcf1c8afc71bd011c)
1e954ab8fSVarun Wadekar /*
2e954ab8fSVarun Wadekar  * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
3e954ab8fSVarun Wadekar  *
4e954ab8fSVarun Wadekar  * Redistribution and use in source and binary forms, with or without
5e954ab8fSVarun Wadekar  * modification, are permitted provided that the following conditions are met:
6e954ab8fSVarun Wadekar  *
7e954ab8fSVarun Wadekar  * Redistributions of source code must retain the above copyright notice, this
8e954ab8fSVarun Wadekar  * list of conditions and the following disclaimer.
9e954ab8fSVarun Wadekar  *
10e954ab8fSVarun Wadekar  * Redistributions in binary form must reproduce the above copyright notice,
11e954ab8fSVarun Wadekar  * this list of conditions and the following disclaimer in the documentation
12e954ab8fSVarun Wadekar  * and/or other materials provided with the distribution.
13e954ab8fSVarun Wadekar  *
14e954ab8fSVarun Wadekar  * Neither the name of ARM nor the names of its contributors may be used
15e954ab8fSVarun Wadekar  * to endorse or promote products derived from this software without specific
16e954ab8fSVarun Wadekar  * prior written permission.
17e954ab8fSVarun Wadekar  *
18e954ab8fSVarun Wadekar  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19e954ab8fSVarun Wadekar  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20e954ab8fSVarun Wadekar  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21e954ab8fSVarun Wadekar  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
22e954ab8fSVarun Wadekar  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23e954ab8fSVarun Wadekar  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24e954ab8fSVarun Wadekar  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25e954ab8fSVarun Wadekar  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26e954ab8fSVarun Wadekar  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27e954ab8fSVarun Wadekar  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28e954ab8fSVarun Wadekar  * POSSIBILITY OF SUCH DAMAGE.
29e954ab8fSVarun Wadekar  */
30e954ab8fSVarun Wadekar 
31e954ab8fSVarun Wadekar #ifndef __TEGRA_PLATFORM_H__
32e954ab8fSVarun Wadekar #define __TEGRA_PLATFORM_H__
33e954ab8fSVarun Wadekar 
34e954ab8fSVarun Wadekar #include <sys/cdefs.h>
35e954ab8fSVarun Wadekar 
36e954ab8fSVarun Wadekar /*
37*ea6dec5dSVarun Wadekar  * Tegra chip major/minor version
38*ea6dec5dSVarun Wadekar  */
39*ea6dec5dSVarun Wadekar uint32_t tegra_get_chipid_major(void);
40*ea6dec5dSVarun Wadekar uint32_t tegra_get_chipid_minor(void);
41*ea6dec5dSVarun Wadekar 
42*ea6dec5dSVarun Wadekar /*
43e954ab8fSVarun Wadekar  * Tegra chip identifiers
44e954ab8fSVarun Wadekar  */
45e954ab8fSVarun Wadekar uint8_t tegra_is_t132(void);
46e954ab8fSVarun Wadekar uint8_t tegra_is_t210(void);
47e954ab8fSVarun Wadekar 
48e954ab8fSVarun Wadekar /*
49e954ab8fSVarun Wadekar  * Tegra platform identifiers
50e954ab8fSVarun Wadekar  */
51e954ab8fSVarun Wadekar uint8_t tegra_platform_is_silicon(void);
52e954ab8fSVarun Wadekar uint8_t tegra_platform_is_qt(void);
53e954ab8fSVarun Wadekar uint8_t tegra_platform_is_emulation(void);
54e954ab8fSVarun Wadekar uint8_t tegra_platform_is_fpga(void);
55e954ab8fSVarun Wadekar 
56e954ab8fSVarun Wadekar #endif /* __TEGRA_PLATFORM_H__ */
57