blob: 62df1b9ad2e9008828ce2db2b701d843ea671e94 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Fabio Estevam87d87332014-01-26 15:06:40 -02002/*
3 * (C) Copyright 2014 Freescale Semiconductor, Inc.
Fabio Estevam87d87332014-01-26 15:06:40 -02004 */
5
Peng Fanf9b78a72015-08-13 10:55:30 +08006#define MXC_CPU_MX23 0x23
7#define MXC_CPU_MX25 0x25
8#define MXC_CPU_MX27 0x27
9#define MXC_CPU_MX28 0x28
10#define MXC_CPU_MX31 0x31
11#define MXC_CPU_MX35 0x35
Fabio Estevam87d87332014-01-26 15:06:40 -020012#define MXC_CPU_MX51 0x51
13#define MXC_CPU_MX53 0x53
14#define MXC_CPU_MX6SL 0x60
15#define MXC_CPU_MX6DL 0x61
Fabio Estevam712ab882014-06-24 17:40:58 -030016#define MXC_CPU_MX6SX 0x62
Fabio Estevam87d87332014-01-26 15:06:40 -020017#define MXC_CPU_MX6Q 0x63
Peng Faneaa53a12015-07-20 19:28:21 +080018#define MXC_CPU_MX6UL 0x64
Peng Fan3b33e3f2016-08-11 14:02:38 +080019#define MXC_CPU_MX6ULL 0x65
20#define MXC_CPU_MX6SOLO 0x66 /* dummy */
Peng Fan4cfd7972016-12-11 19:24:20 +080021#define MXC_CPU_MX6SLL 0x67
22#define MXC_CPU_MX6D 0x6A
Peng Fan5f247922015-07-11 11:38:42 +080023#define MXC_CPU_MX6DP 0x68
24#define MXC_CPU_MX6QP 0x69
Fabio Estevamf6ced1b2016-02-28 12:33:17 -030025#define MXC_CPU_MX7S 0x71 /* dummy ID */
Adrian Alonso2b3d9612015-09-02 13:54:19 -050026#define MXC_CPU_MX7D 0x72
Peng Fan44eaba62018-01-10 13:20:27 +080027#define MXC_CPU_MX8MQ 0x82
28#define MXC_CPU_MX7ULP 0xE1 /* Temporally hard code */
Peng Fan0bacb932015-09-01 17:15:03 +080029#define MXC_CPU_VF610 0xF6 /* dummy ID */
Fabio Estevam16e65f62014-11-14 11:27:21 -020030
Adrian Alonso1eec27c2015-09-02 13:54:12 -050031#define MXC_SOC_MX6 0x60
Adrian Alonso2b3d9612015-09-02 13:54:19 -050032#define MXC_SOC_MX7 0x70
Peng Fan44eaba62018-01-10 13:20:27 +080033#define MXC_SOC_MX8M 0x80
34#define MXC_SOC_MX7ULP 0xE0 /* dummy */
Adrian Alonso1eec27c2015-09-02 13:54:12 -050035
Adrian Alonsoa7209a22015-10-12 13:48:07 -050036#define CHIP_REV_1_0 0x10
37#define CHIP_REV_1_1 0x11
38#define CHIP_REV_1_2 0x12
39#define CHIP_REV_1_5 0x15
40#define CHIP_REV_2_0 0x20
41#define CHIP_REV_2_5 0x25
42#define CHIP_REV_3_0 0x30
43
44#define BOARD_REV_1_0 0x0
45#define BOARD_REV_2_0 0x1
46#define BOARD_VER_OFFSET 0x8
47
Fabio Estevam16e65f62014-11-14 11:27:21 -020048#define CS0_128 0
49#define CS0_64M_CS1_64M 1
50#define CS0_64M_CS1_32M_CS2_32M 2
51#define CS0_32M_CS1_32M_CS2_32M_CS3_32M 3
Eric Nelson25e02302015-02-15 14:37:21 -070052
53u32 get_imx_reset_cause(void);
Simon Glass125a4c12017-05-17 08:23:07 -060054ulong get_systemPLLCLK(void);
55ulong get_FCLK(void);
56ulong get_HCLK(void);
57ulong get_BCLK(void);
58ulong get_PERCLK1(void);
59ulong get_PERCLK2(void);
60ulong get_PERCLK3(void);