18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright 2015 Linaro Ltd.
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#ifndef __SOC_IMX_REVISION_H__
78c2ecf20Sopenharmony_ci#define __SOC_IMX_REVISION_H__
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#define IMX_CHIP_REVISION_1_0		0x10
108c2ecf20Sopenharmony_ci#define IMX_CHIP_REVISION_1_1		0x11
118c2ecf20Sopenharmony_ci#define IMX_CHIP_REVISION_1_2		0x12
128c2ecf20Sopenharmony_ci#define IMX_CHIP_REVISION_1_3		0x13
138c2ecf20Sopenharmony_ci#define IMX_CHIP_REVISION_1_4		0x14
148c2ecf20Sopenharmony_ci#define IMX_CHIP_REVISION_1_5		0x15
158c2ecf20Sopenharmony_ci#define IMX_CHIP_REVISION_2_0		0x20
168c2ecf20Sopenharmony_ci#define IMX_CHIP_REVISION_2_1		0x21
178c2ecf20Sopenharmony_ci#define IMX_CHIP_REVISION_2_2		0x22
188c2ecf20Sopenharmony_ci#define IMX_CHIP_REVISION_2_3		0x23
198c2ecf20Sopenharmony_ci#define IMX_CHIP_REVISION_3_0		0x30
208c2ecf20Sopenharmony_ci#define IMX_CHIP_REVISION_3_1		0x31
218c2ecf20Sopenharmony_ci#define IMX_CHIP_REVISION_3_2		0x32
228c2ecf20Sopenharmony_ci#define IMX_CHIP_REVISION_3_3		0x33
238c2ecf20Sopenharmony_ci#define IMX_CHIP_REVISION_UNKNOWN	0xff
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ciint mx27_revision(void);
268c2ecf20Sopenharmony_ciint mx31_revision(void);
278c2ecf20Sopenharmony_ciint mx35_revision(void);
288c2ecf20Sopenharmony_ciint mx51_revision(void);
298c2ecf20Sopenharmony_ciint mx53_revision(void);
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ciunsigned int imx_get_soc_revision(void);
328c2ecf20Sopenharmony_civoid imx_print_silicon_rev(const char *cpu, int srev);
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci#endif /* __SOC_IMX_REVISION_H__ */
35