Commit 5fdfc7d7 authored by Peng Fan's avatar Peng Fan

MLK-18243-12 arm: imx8m: add cpu revision for i.MX8MM

Add cpu revision for i.MX8MM
Add helper function
Signed-off-by: 's avatarPeng Fan <peng.fan@nxp.com>
parent 330051b4
......@@ -4,7 +4,7 @@
*
* (C) Copyright 2009-2016 Freescale Semiconductor, Inc.
*
* Copyright 2017 NXP
* Copyright 2017-2018 NXP
*
* SPDX-License-Identifier: GPL-2.0+
*/
......@@ -151,8 +151,10 @@ unsigned imx_ddr_size(void)
const char *get_imx_type(u32 imxtype)
{
switch (imxtype) {
case MXC_CPU_IMX8MM:
return "8MM"; /* Quad-core version of the imx8mm */
case MXC_CPU_IMX8MQ:
return "8MQ"; /* Quad-core version of the imx8m */
return "8MQ"; /* Quad-core version of the imx8mq */
case MXC_CPU_MX7S:
return "7S"; /* Single-core version of the mx7 */
case MXC_CPU_MX7D:
......
/*
* (C) Copyright 2014 Freescale Semiconductor, Inc.
* Copyright 2018 NXP
*
* SPDX-License-Identifier: GPL-2.0+
*/
......@@ -27,6 +28,8 @@
#define MXC_CPU_MX7D 0x72
#define MXC_CPU_MX7ULP 0xE1 /* dummy ID */
#define MXC_CPU_IMX8MQ 0x82
/* 0x83 is dummy value */
#define MXC_CPU_IMX8MM 0x83
#define MXC_CPU_IMX8QM 0x91 /* dummy ID */
#define MXC_CPU_IMX8QXP 0x92 /* dummy ID */
#define MXC_CPU_IMX8DX 0x93 /* dummy ID */
......
......@@ -3,6 +3,7 @@
* Stefano Babic, DENX Software Engineering, sbabic@denx.de.
*
* Copyright (C) 2016 Freescale Semiconductor, Inc.
* Copyright 2018 NXP
*
* SPDX-License-Identifier: GPL-2.0+
*/
......@@ -44,6 +45,8 @@
#define is_mx7ulp() (is_cpu_type(MXC_CPU_MX7ULP))
#define is_imx8mq() (is_cpu_type(MXC_CPU_IMX8MQ))
#define is_imx8mm() (is_cpu_type(MXC_CPU_IMX8MM))
#define is_imx8qm() (is_cpu_type(MXC_CPU_IMX8QM))
#define is_imx8qxp() (is_cpu_type(MXC_CPU_IMX8QXP))
#define is_imx8dx() (is_cpu_type(MXC_CPU_IMX8DX))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment