summaryrefslogtreecommitdiff
path: root/include/soc/imx8/soc.h
blob: 0d3fedc0f34c38ea65df4a6f088fb3fc9f0cd17d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 * Copyright 2017 NXP
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */


#ifndef __SOC_IMX8_SOC_H__
#define __SOC_IMX8_SOC_H__

#define IMX_SOC_IMX8QM		0x01
#define IMX_SOC_IMX8QXP		0x02
#define IMX_SOC_IMX8MQ		0x82

bool cpu_is_imx8qm(void);
bool cpu_is_imx8mq(void);
bool cpu_is_imx8qxp(void);

extern bool TKT340553_SW_WORKAROUND;
unsigned int imx8_get_soc_revision(void);

int check_m4_enabled(void);

#endif