blob: 7c63c13d7b51a0c36b11d90c3630189352577b5d [file] [log] [blame]
Fabio Estevam87d87332014-01-26 15:06:40 -02001/*
2 * (C) Copyright 2014 Freescale Semiconductor, Inc.
3 *
4 * SPDX-License-Identifier: GPL-2.0+
5 */
6
Peng Fanf9b78a72015-08-13 10:55:30 +08007#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
Fabio Estevam87d87332014-01-26 15:06:40 -020013#define MXC_CPU_MX51 0x51
14#define MXC_CPU_MX53 0x53
15#define MXC_CPU_MX6SL 0x60
16#define MXC_CPU_MX6DL 0x61
Fabio Estevam712ab882014-06-24 17:40:58 -030017#define MXC_CPU_MX6SX 0x62
Fabio Estevam87d87332014-01-26 15:06:40 -020018#define MXC_CPU_MX6Q 0x63
Peng Faneaa53a12015-07-20 19:28:21 +080019#define MXC_CPU_MX6UL 0x64
Fabio Estevam712ab882014-06-24 17:40:58 -030020#define MXC_CPU_MX6SOLO 0x65 /* dummy ID */
Peng Faneaa53a12015-07-20 19:28:21 +080021#define MXC_CPU_MX6D 0x67
Peng Fan5f247922015-07-11 11:38:42 +080022#define MXC_CPU_MX6DP 0x68
23#define MXC_CPU_MX6QP 0x69
Fabio Estevamf6ced1b2016-02-28 12:33:17 -030024#define MXC_CPU_MX7S 0x71 /* dummy ID */
Adrian Alonso2b3d9612015-09-02 13:54:19 -050025#define MXC_CPU_MX7D 0x72
Peng Fan0bacb932015-09-01 17:15:03 +080026#define MXC_CPU_VF610 0xF6 /* dummy ID */
Fabio Estevam16e65f62014-11-14 11:27:21 -020027
Adrian Alonso1eec27c2015-09-02 13:54:12 -050028#define MXC_SOC_MX6 0x60
Adrian Alonso2b3d9612015-09-02 13:54:19 -050029#define MXC_SOC_MX7 0x70
Adrian Alonso1eec27c2015-09-02 13:54:12 -050030
Adrian Alonsoa7209a22015-10-12 13:48:07 -050031#define CHIP_REV_1_0 0x10
32#define CHIP_REV_1_1 0x11
33#define CHIP_REV_1_2 0x12
34#define CHIP_REV_1_5 0x15
35#define CHIP_REV_2_0 0x20
36#define CHIP_REV_2_5 0x25
37#define CHIP_REV_3_0 0x30
38
39#define BOARD_REV_1_0 0x0
40#define BOARD_REV_2_0 0x1
41#define BOARD_VER_OFFSET 0x8
42
Fabio Estevam16e65f62014-11-14 11:27:21 -020043#define CS0_128 0
44#define CS0_64M_CS1_64M 1
45#define CS0_64M_CS1_32M_CS2_32M 2
46#define CS0_32M_CS1_32M_CS2_32M_CS3_32M 3
Eric Nelson25e02302015-02-15 14:37:21 -070047
48u32 get_imx_reset_cause(void);