1 /* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */
3 * Copyright (C) 2015-2017, STMicroelectronics - All Rights Reserved
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
14 /* return CPU_STMP32MP...Xxx constants */
15 u32 get_cpu_type(void);
17 #define CPU_REVA 0x1000
18 #define CPU_REVB 0x2000
19 #define CPU_REVZ 0x2001
21 /* return CPU_REV constants */
22 u32 get_cpu_rev(void);
24 /* Get Package options from OTP */
25 u32 get_cpu_package(void);
27 #define PKG_AA_LBGA448 4
28 #define PKG_AB_LBGA354 3
29 #define PKG_AC_TFBGA361 2
30 #define PKG_AD_TFBGA257 1
32 /* return boot mode */
33 u32 get_bootmode(void);
35 int setup_mac_address(void);