summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mxs/include/mach/revision.h
blob: 65daf3db987161958e75ddac9185b1871e4374c6 (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
/* SPDX-License-Identifier: GPL-2.0-only */

#ifndef __MACH_REVISION_H__
#define __MACH_REVISION_H__

/* silicon revisions  */
enum silicon_revision {
	SILICON_REVISION_1_0 = 0x10,
	SILICON_REVISION_1_1 = 0x11,
	SILICON_REVISION_1_2 = 0x12,
	SILICON_REVISION_1_3 = 0x13,
	SILICON_REVISION_1_4 = 0x14,
	SILICON_REVISION_2_0 = 0x20,
	SILICON_REVISION_2_1 = 0x21,
	SILICON_REVISION_2_2 = 0x22,
	SILICON_REVISION_2_3 = 0x23,
	SILICON_REVISION_3_0 = 0x30,
	SILICON_REVISION_3_1 = 0x31,
	SILICON_REVISION_3_2 = 0x32,
	SILICON_REVISION_UNKNOWN =0xff
};

int silicon_revision_get(void);
void silicon_revision_set(const char *soc, int revision);

#endif /* __MACH_REVISION_H__ */