xref: /openbmc/u-boot/arch/arm/include/asm/arch-imx/cpu.h (revision 85231c08)
1 /*
2  * (C) Copyright 2014 Freescale Semiconductor, Inc.
3  *
4  * SPDX-License-Identifier:	GPL-2.0+
5  */
6 
7 #define MXC_CPU_MX23		0x23
8 #define MXC_CPU_MX25		0x25
9 #define MXC_CPU_MX27		0x27
10 #define MXC_CPU_MX28		0x28
11 #define MXC_CPU_MX31		0x31
12 #define MXC_CPU_MX35		0x35
13 #define MXC_CPU_MX51		0x51
14 #define MXC_CPU_MX53		0x53
15 #define MXC_CPU_MX6SL		0x60
16 #define MXC_CPU_MX6DL		0x61
17 #define MXC_CPU_MX6SX		0x62
18 #define MXC_CPU_MX6Q		0x63
19 #define MXC_CPU_MX6UL		0x64
20 #define MXC_CPU_MX6ULL		0x65
21 #define MXC_CPU_MX6SOLO		0x66 /* dummy */
22 #define MXC_CPU_MX6SLL		0x67
23 #define MXC_CPU_MX6D		0x6A
24 #define MXC_CPU_MX6DP		0x68
25 #define MXC_CPU_MX6QP		0x69
26 #define MXC_CPU_MX7S		0x71 /* dummy ID */
27 #define MXC_CPU_MX7D		0x72
28 #define MXC_CPU_MX8MQ		0x82
29 #define MXC_CPU_MX7ULP		0xE1 /* Temporally hard code */
30 #define MXC_CPU_VF610		0xF6 /* dummy ID */
31 
32 #define MXC_SOC_MX6		0x60
33 #define MXC_SOC_MX7		0x70
34 #define MXC_SOC_MX8M		0x80
35 #define MXC_SOC_MX7ULP		0xE0 /* dummy */
36 
37 #define CHIP_REV_1_0            0x10
38 #define CHIP_REV_1_1            0x11
39 #define CHIP_REV_1_2            0x12
40 #define CHIP_REV_1_5            0x15
41 #define CHIP_REV_2_0            0x20
42 #define CHIP_REV_2_5            0x25
43 #define CHIP_REV_3_0            0x30
44 
45 #define BOARD_REV_1_0           0x0
46 #define BOARD_REV_2_0           0x1
47 #define BOARD_VER_OFFSET        0x8
48 
49 #define CS0_128					0
50 #define CS0_64M_CS1_64M				1
51 #define CS0_64M_CS1_32M_CS2_32M			2
52 #define CS0_32M_CS1_32M_CS2_32M_CS3_32M		3
53 
54 u32 get_imx_reset_cause(void);
55 ulong get_systemPLLCLK(void);
56 ulong get_FCLK(void);
57 ulong get_HCLK(void);
58 ulong get_BCLK(void);
59 ulong get_PERCLK1(void);
60 ulong get_PERCLK2(void);
61 ulong get_PERCLK3(void);
62