Fabio Estevam | 87d8733 | 2014-01-26 15:06:40 -0200 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2014 Freescale Semiconductor, Inc. |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | */ |
| 6 | |
Peng Fan | f9b78a7 | 2015-08-13 10:55:30 +0800 | [diff] [blame] | 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 |
Fabio Estevam | 87d8733 | 2014-01-26 15:06:40 -0200 | [diff] [blame] | 13 | #define MXC_CPU_MX51 0x51 |
| 14 | #define MXC_CPU_MX53 0x53 |
| 15 | #define MXC_CPU_MX6SL 0x60 |
| 16 | #define MXC_CPU_MX6DL 0x61 |
Fabio Estevam | 712ab88 | 2014-06-24 17:40:58 -0300 | [diff] [blame] | 17 | #define MXC_CPU_MX6SX 0x62 |
Fabio Estevam | 87d8733 | 2014-01-26 15:06:40 -0200 | [diff] [blame] | 18 | #define MXC_CPU_MX6Q 0x63 |
Peng Fan | eaa53a1 | 2015-07-20 19:28:21 +0800 | [diff] [blame] | 19 | #define MXC_CPU_MX6UL 0x64 |
Peng Fan | 3b33e3f | 2016-08-11 14:02:38 +0800 | [diff] [blame] | 20 | #define MXC_CPU_MX6ULL 0x65 |
| 21 | #define MXC_CPU_MX6SOLO 0x66 /* dummy */ |
Peng Fan | 4cfd797 | 2016-12-11 19:24:20 +0800 | [diff] [blame] | 22 | #define MXC_CPU_MX6SLL 0x67 |
| 23 | #define MXC_CPU_MX6D 0x6A |
Peng Fan | 5f24792 | 2015-07-11 11:38:42 +0800 | [diff] [blame] | 24 | #define MXC_CPU_MX6DP 0x68 |
| 25 | #define MXC_CPU_MX6QP 0x69 |
Fabio Estevam | f6ced1b | 2016-02-28 12:33:17 -0300 | [diff] [blame] | 26 | #define MXC_CPU_MX7S 0x71 /* dummy ID */ |
Adrian Alonso | 2b3d961 | 2015-09-02 13:54:19 -0500 | [diff] [blame] | 27 | #define MXC_CPU_MX7D 0x72 |
Peng Fan | b5a9029 | 2017-02-22 16:21:43 +0800 | [diff] [blame] | 28 | #define MXC_CPU_MX7ULP 0x81 /* Temporally hard code */ |
Peng Fan | 0bacb93 | 2015-09-01 17:15:03 +0800 | [diff] [blame] | 29 | #define MXC_CPU_VF610 0xF6 /* dummy ID */ |
Fabio Estevam | 16e65f6 | 2014-11-14 11:27:21 -0200 | [diff] [blame] | 30 | |
Adrian Alonso | 1eec27c | 2015-09-02 13:54:12 -0500 | [diff] [blame] | 31 | #define MXC_SOC_MX6 0x60 |
Adrian Alonso | 2b3d961 | 2015-09-02 13:54:19 -0500 | [diff] [blame] | 32 | #define MXC_SOC_MX7 0x70 |
Peng Fan | b5a9029 | 2017-02-22 16:21:43 +0800 | [diff] [blame] | 33 | #define MXC_SOC_MX7ULP 0x80 /* dummy */ |
Adrian Alonso | 1eec27c | 2015-09-02 13:54:12 -0500 | [diff] [blame] | 34 | |
Adrian Alonso | a7209a2 | 2015-10-12 13:48:07 -0500 | [diff] [blame] | 35 | #define CHIP_REV_1_0 0x10 |
| 36 | #define CHIP_REV_1_1 0x11 |
| 37 | #define CHIP_REV_1_2 0x12 |
| 38 | #define CHIP_REV_1_5 0x15 |
| 39 | #define CHIP_REV_2_0 0x20 |
| 40 | #define CHIP_REV_2_5 0x25 |
| 41 | #define CHIP_REV_3_0 0x30 |
| 42 | |
| 43 | #define BOARD_REV_1_0 0x0 |
| 44 | #define BOARD_REV_2_0 0x1 |
| 45 | #define BOARD_VER_OFFSET 0x8 |
| 46 | |
Fabio Estevam | 16e65f6 | 2014-11-14 11:27:21 -0200 | [diff] [blame] | 47 | #define CS0_128 0 |
| 48 | #define CS0_64M_CS1_64M 1 |
| 49 | #define CS0_64M_CS1_32M_CS2_32M 2 |
| 50 | #define CS0_32M_CS1_32M_CS2_32M_CS3_32M 3 |
Eric Nelson | 25e0230 | 2015-02-15 14:37:21 -0700 | [diff] [blame] | 51 | |
| 52 | u32 get_imx_reset_cause(void); |
Simon Glass | 125a4c1 | 2017-05-17 08:23:07 -0600 | [diff] [blame] | 53 | ulong get_systemPLLCLK(void); |
| 54 | ulong get_FCLK(void); |
| 55 | ulong get_HCLK(void); |
| 56 | ulong get_BCLK(void); |
| 57 | ulong get_PERCLK1(void); |
| 58 | ulong get_PERCLK2(void); |
| 59 | ulong get_PERCLK3(void); |