Tom Rini | 8b0c8a1 | 2018-05-06 18:27:01 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */ |
Patrick Delaunay | 01e3afe | 2018-03-19 19:09:21 +0100 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2015-2017, STMicroelectronics - All Rights Reserved |
Patrick Delaunay | 01e3afe | 2018-03-19 19:09:21 +0100 | [diff] [blame] | 4 | */ |
| 5 | |
| 6 | #define CPU_STMP32MP15x 0x500 |
| 7 | |
| 8 | /* return CPU_STMP32MPxx constants */ |
| 9 | u32 get_cpu_type(void); |
| 10 | |
| 11 | #define CPU_REVA 0x1000 |
| 12 | #define CPU_REVB 0x2000 |
| 13 | |
| 14 | /* return CPU_REV constants */ |
| 15 | u32 get_cpu_rev(void); |
Patrick Delaunay | 18660a6 | 2019-02-27 17:01:12 +0100 | [diff] [blame^] | 16 | /* return boot mode */ |
| 17 | u32 get_bootmode(void); |