2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2014-01-26 17:06:40 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2014 Freescale Semiconductor, Inc.
|
|
|
|
*/
|
|
|
|
|
2015-08-13 02:55:30 +00:00
|
|
|
#define MXC_CPU_MX23 0x23
|
|
|
|
#define MXC_CPU_MX25 0x25
|
|
|
|
#define MXC_CPU_MX27 0x27
|
|
|
|
#define MXC_CPU_MX28 0x28
|
|
|
|
#define MXC_CPU_MX31 0x31
|
|
|
|
#define MXC_CPU_MX35 0x35
|
2014-01-26 17:06:40 +00:00
|
|
|
#define MXC_CPU_MX51 0x51
|
|
|
|
#define MXC_CPU_MX53 0x53
|
|
|
|
#define MXC_CPU_MX6SL 0x60
|
|
|
|
#define MXC_CPU_MX6DL 0x61
|
2014-06-24 20:40:58 +00:00
|
|
|
#define MXC_CPU_MX6SX 0x62
|
2014-01-26 17:06:40 +00:00
|
|
|
#define MXC_CPU_MX6Q 0x63
|
2015-07-20 11:28:21 +00:00
|
|
|
#define MXC_CPU_MX6UL 0x64
|
2016-08-11 06:02:38 +00:00
|
|
|
#define MXC_CPU_MX6ULL 0x65
|
2019-08-08 09:55:52 +00:00
|
|
|
#define MXC_CPU_MX6ULZ 0x6B
|
2016-08-11 06:02:38 +00:00
|
|
|
#define MXC_CPU_MX6SOLO 0x66 /* dummy */
|
2016-12-11 11:24:20 +00:00
|
|
|
#define MXC_CPU_MX6SLL 0x67
|
|
|
|
#define MXC_CPU_MX6D 0x6A
|
2015-07-11 03:38:42 +00:00
|
|
|
#define MXC_CPU_MX6DP 0x68
|
|
|
|
#define MXC_CPU_MX6QP 0x69
|
2016-02-28 15:33:17 +00:00
|
|
|
#define MXC_CPU_MX7S 0x71 /* dummy ID */
|
2015-09-02 18:54:19 +00:00
|
|
|
#define MXC_CPU_MX7D 0x72
|
2018-11-20 10:19:25 +00:00
|
|
|
#define MXC_CPU_IMX8MQ 0x82
|
2020-02-05 09:34:54 +00:00
|
|
|
#define MXC_CPU_IMX8MD 0x83 /* dummy ID */
|
|
|
|
#define MXC_CPU_IMX8MQL 0x84 /* dummy ID */
|
2019-08-27 06:25:04 +00:00
|
|
|
#define MXC_CPU_IMX8MM 0x85 /* dummy ID */
|
|
|
|
#define MXC_CPU_IMX8MML 0x86 /* dummy ID */
|
|
|
|
#define MXC_CPU_IMX8MMD 0x87 /* dummy ID */
|
|
|
|
#define MXC_CPU_IMX8MMDL 0x88 /* dummy ID */
|
|
|
|
#define MXC_CPU_IMX8MMS 0x89 /* dummy ID */
|
|
|
|
#define MXC_CPU_IMX8MMSL 0x8a /* dummy ID */
|
2019-06-27 09:23:49 +00:00
|
|
|
#define MXC_CPU_IMX8MN 0x8b /* dummy ID */
|
2020-02-05 09:39:27 +00:00
|
|
|
#define MXC_CPU_IMX8MND 0x8c /* dummy ID */
|
|
|
|
#define MXC_CPU_IMX8MNS 0x8d /* dummy ID */
|
|
|
|
#define MXC_CPU_IMX8MNL 0x8e /* dummy ID */
|
|
|
|
#define MXC_CPU_IMX8MNDL 0x8f /* dummy ID */
|
|
|
|
#define MXC_CPU_IMX8MNSL 0x181 /* dummy ID */
|
2019-12-27 02:14:02 +00:00
|
|
|
#define MXC_CPU_IMX8MP 0x182/* dummy ID */
|
imx8mp: Add fused parts support
iMX8MP has 6 fused parts in each qualification tier, with core, VPU,
ISP, NPU or DSP fused respectively.
The configuration tables for enabled modules:
MIMX8ML8DVNLZAA Quad Core, VPU, NPU, ISP, DSP
MIMX8ML7DVNLZAA Quad Core, NPU, ISP
MIMX8ML6DVNLZAA Quad Core, VPU, ISP
MIMX8ML5DVNLZAA Quad Core, VPU
MIMX8ML4DVNLZAA Quad Lite
MIMX8ML3DVNLZAA Dual Core, VPU, NPU, ISP, DSP
Add the support in U-Boot
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2020-04-21 03:12:54 +00:00
|
|
|
#define MXC_CPU_IMX8MP6 0x184 /* dummy ID */
|
|
|
|
#define MXC_CPU_IMX8MPL 0x186 /* dummy ID */
|
|
|
|
#define MXC_CPU_IMX8MPD 0x187 /* dummy ID */
|
2018-10-18 12:28:24 +00:00
|
|
|
#define MXC_CPU_IMX8QXP_A0 0x90 /* dummy ID */
|
2019-03-05 02:32:28 +00:00
|
|
|
#define MXC_CPU_IMX8QM 0x91 /* dummy ID */
|
2018-10-18 12:28:16 +00:00
|
|
|
#define MXC_CPU_IMX8QXP 0x92 /* dummy ID */
|
2018-01-10 05:20:27 +00:00
|
|
|
#define MXC_CPU_MX7ULP 0xE1 /* Temporally hard code */
|
2015-09-01 09:15:03 +00:00
|
|
|
#define MXC_CPU_VF610 0xF6 /* dummy ID */
|
2014-11-14 13:27:21 +00:00
|
|
|
|
2015-09-02 18:54:12 +00:00
|
|
|
#define MXC_SOC_MX6 0x60
|
2015-09-02 18:54:19 +00:00
|
|
|
#define MXC_SOC_MX7 0x70
|
2018-11-20 10:19:25 +00:00
|
|
|
#define MXC_SOC_IMX8M 0x80
|
2018-10-18 12:28:16 +00:00
|
|
|
#define MXC_SOC_IMX8 0x90 /* dummy */
|
2018-01-10 05:20:27 +00:00
|
|
|
#define MXC_SOC_MX7ULP 0xE0 /* dummy */
|
2015-09-02 18:54:12 +00:00
|
|
|
|
2015-10-12 18:48:07 +00:00
|
|
|
#define CHIP_REV_1_0 0x10
|
|
|
|
#define CHIP_REV_1_1 0x11
|
|
|
|
#define CHIP_REV_1_2 0x12
|
|
|
|
#define CHIP_REV_1_5 0x15
|
|
|
|
#define CHIP_REV_2_0 0x20
|
2018-11-20 10:19:18 +00:00
|
|
|
#define CHIP_REV_2_1 0x21
|
2015-10-12 18:48:07 +00:00
|
|
|
#define CHIP_REV_2_5 0x25
|
|
|
|
#define CHIP_REV_3_0 0x30
|
|
|
|
|
2018-10-18 12:28:24 +00:00
|
|
|
#define CHIP_REV_A 0x0
|
|
|
|
#define CHIP_REV_B 0x1
|
2020-05-03 13:58:55 +00:00
|
|
|
#define CHIP_REV_C 0x2
|
2018-10-18 12:28:16 +00:00
|
|
|
|
2015-10-12 18:48:07 +00:00
|
|
|
#define BOARD_REV_1_0 0x0
|
|
|
|
#define BOARD_REV_2_0 0x1
|
|
|
|
#define BOARD_VER_OFFSET 0x8
|
|
|
|
|
2014-11-14 13:27:21 +00:00
|
|
|
#define CS0_128 0
|
|
|
|
#define CS0_64M_CS1_64M 1
|
|
|
|
#define CS0_64M_CS1_32M_CS2_32M 2
|
|
|
|
#define CS0_32M_CS1_32M_CS2_32M_CS3_32M 3
|
2015-02-15 21:37:21 +00:00
|
|
|
|
|
|
|
u32 get_imx_reset_cause(void);
|
2017-05-17 14:23:07 +00:00
|
|
|
ulong get_systemPLLCLK(void);
|
|
|
|
ulong get_FCLK(void);
|
|
|
|
ulong get_HCLK(void);
|
|
|
|
ulong get_BCLK(void);
|
|
|
|
ulong get_PERCLK1(void);
|
|
|
|
ulong get_PERCLK2(void);
|
|
|
|
ulong get_PERCLK3(void);
|