xref: /optee_os/core/arch/arm/plat-imx/imx.h (revision 0608dbc2fc99156fb8ec8aa0e4dc1c979461761a)
11bb92983SJerome Forissier /* SPDX-License-Identifier: BSD-2-Clause */
2552cad35SPeng Fan /*
316e73240SCedric Neveux  * Copyright 2017-2019 NXP
4552cad35SPeng Fan  *
5552cad35SPeng Fan  * Peng Fan <peng.fan@nxp.com>
6552cad35SPeng Fan  */
7552cad35SPeng Fan #ifndef PLAT_IMX_IMX_H
8552cad35SPeng Fan #define PLAT_IMX_IMX_H
9552cad35SPeng Fan 
10552cad35SPeng Fan #include <stdint.h>
11ad817142SPeng Fan #include <stdbool.h>
12ad817142SPeng Fan 
13ad817142SPeng Fan #define SOC_MX6SL	0x60
14ad817142SPeng Fan #define SOC_MX6DL	0x61
15ad817142SPeng Fan #define SOC_MX6SX	0x62
16ad817142SPeng Fan #define SOC_MX6Q	0x63
17ad817142SPeng Fan #define SOC_MX6UL	0x64
18ad817142SPeng Fan #define SOC_MX6ULL	0x65
19ad817142SPeng Fan #define SOC_MX6SLL	0x67
20ad817142SPeng Fan #define SOC_MX6D	0x6A
21ad817142SPeng Fan #define SOC_MX7D	0x72
22c3d61baaSClement Faure #define SOC_MX7ULP	0xE1
23d3bf580aSSilvano di Ninno #define SOC_MX8QX	0xE2
24bacb1a4bSSilvano di Ninno #define SOC_MX8QM	0xE3
252a7ffe2fSSilvano di Ninno #define SOC_MX8DXL	0xE4
260a8e42ddSClement Faure #define SOC_MX8M	0x82
279781fbd2SClement Faure #define SOC_MX8ULP	0x83
28d0d5da25SClement Faure #define SOC_MX93	0xC1
298536585dSSahil Malhotra #define SOC_MX95        0x1C1
30*0608dbc2SSahil Malhotra #define SOC_MX91        0xCB
31552cad35SPeng Fan 
322d7a8964SCedric Neveux #ifndef __ASSEMBLER__
3316e73240SCedric Neveux bool soc_is_imx6(void);
3416e73240SCedric Neveux bool soc_is_imx6sx(void);
3564de482eSBai Ping bool soc_is_imx6sl(void);
364dac8328SBai Ping bool soc_is_imx6sll(void);
37ad817142SPeng Fan bool soc_is_imx6ul(void);
38ad817142SPeng Fan bool soc_is_imx6ull(void);
39ad817142SPeng Fan bool soc_is_imx6sdl(void);
40ad817142SPeng Fan bool soc_is_imx6dq(void);
41ad817142SPeng Fan bool soc_is_imx6dqp(void);
42ad817142SPeng Fan bool soc_is_imx7ds(void);
43c3d61baaSClement Faure bool soc_is_imx7ulp(void);
440a8e42ddSClement Faure bool soc_is_imx8m(void);
450a8e42ddSClement Faure bool soc_is_imx8mq(void);
460a8e42ddSClement Faure bool soc_is_imx8mm(void);
470a8e42ddSClement Faure bool soc_is_imx8mn(void);
480a8e42ddSClement Faure bool soc_is_imx8mp(void);
490a8e42ddSClement Faure bool soc_is_imx8mq_b0_layer(void);
500a8e42ddSClement Faure uint32_t imx_soc_type(void);
510a8e42ddSClement Faure uint32_t imx_soc_rev_major(void);
520a8e42ddSClement Faure uint32_t imx_soc_rev_minor(void);
530a8e42ddSClement Faure uint32_t imx_get_digprog(void);
542d7a8964SCedric Neveux #endif /* __ASSEMBLER__ */
55552cad35SPeng Fan #endif
56