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 | |
Patrick Delaunay | 45c82d2 | 2019-02-27 17:01:13 +0100 | [diff] [blame] | 6 | /* ID = Device Version (bit31:16) + Device Part Number (RPN) (bit15:0)*/ |
| 7 | #define CPU_STM32MP157Cxx 0x05000000 |
| 8 | #define CPU_STM32MP157Axx 0x05000001 |
| 9 | #define CPU_STM32MP153Cxx 0x05000024 |
| 10 | #define CPU_STM32MP153Axx 0x05000025 |
| 11 | #define CPU_STM32MP151Cxx 0x0500002E |
| 12 | #define CPU_STM32MP151Axx 0x0500002F |
Patrick Delaunay | 01e3afe | 2018-03-19 19:09:21 +0100 | [diff] [blame] | 13 | |
Patrick Delaunay | 45c82d2 | 2019-02-27 17:01:13 +0100 | [diff] [blame] | 14 | /* return CPU_STMP32MP...Xxx constants */ |
Patrick Delaunay | 01e3afe | 2018-03-19 19:09:21 +0100 | [diff] [blame] | 15 | u32 get_cpu_type(void); |
| 16 | |
| 17 | #define CPU_REVA 0x1000 |
| 18 | #define CPU_REVB 0x2000 |
| 19 | |
| 20 | /* return CPU_REV constants */ |
| 21 | u32 get_cpu_rev(void); |
Patrick Delaunay | 18660a6 | 2019-02-27 17:01:12 +0100 | [diff] [blame] | 22 | /* return boot mode */ |
| 23 | u32 get_bootmode(void); |