2018-05-06 22:27:01 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */
|
2018-03-19 18:09:21 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2015-2017, STMicroelectronics - All Rights Reserved
|
|
|
|
*/
|
|
|
|
|
2019-02-27 16:01:13 +00:00
|
|
|
/* ID = Device Version (bit31:16) + Device Part Number (RPN) (bit15:0)*/
|
|
|
|
#define CPU_STM32MP157Cxx 0x05000000
|
|
|
|
#define CPU_STM32MP157Axx 0x05000001
|
|
|
|
#define CPU_STM32MP153Cxx 0x05000024
|
|
|
|
#define CPU_STM32MP153Axx 0x05000025
|
|
|
|
#define CPU_STM32MP151Cxx 0x0500002E
|
|
|
|
#define CPU_STM32MP151Axx 0x0500002F
|
2018-03-19 18:09:21 +00:00
|
|
|
|
2019-02-27 16:01:13 +00:00
|
|
|
/* return CPU_STMP32MP...Xxx constants */
|
2018-03-19 18:09:21 +00:00
|
|
|
u32 get_cpu_type(void);
|
|
|
|
|
|
|
|
#define CPU_REVA 0x1000
|
|
|
|
#define CPU_REVB 0x2000
|
|
|
|
|
|
|
|
/* return CPU_REV constants */
|
|
|
|
u32 get_cpu_rev(void);
|
2019-07-05 15:20:13 +00:00
|
|
|
|
|
|
|
/* Get Package options from OTP */
|
|
|
|
u32 get_cpu_package(void);
|
|
|
|
|
|
|
|
#define PKG_AA_LBGA448 4
|
|
|
|
#define PKG_AB_LBGA354 3
|
|
|
|
#define PKG_AC_TFBGA361 2
|
|
|
|
#define PKG_AD_TFBGA257 1
|
|
|
|
|
2019-02-27 16:01:12 +00:00
|
|
|
/* return boot mode */
|
|
|
|
u32 get_bootmode(void);
|