All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peng Fan <peng.fan@nxp.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 10/23] imx: add i.MX8MQ SoC Revision and is_mx8m helper
Date: Tue, 28 Nov 2017 20:31:52 +0800	[thread overview]
Message-ID: <20171128123205.12610-11-peng.fan@nxp.com> (raw)
In-Reply-To: <20171128123205.12610-1-peng.fan@nxp.com>

Add i.MX8MQ SoC Revision
Add is_mx8m helper
The 7ULP is a dummy number, so use 0xEx.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 arch/arm/include/asm/arch-imx/cpu.h       | 6 ++++--
 arch/arm/include/asm/mach-imx/sys_proto.h | 1 +
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/arch/arm/include/asm/arch-imx/cpu.h b/arch/arm/include/asm/arch-imx/cpu.h
index ec5b419e47..470961c6f7 100644
--- a/arch/arm/include/asm/arch-imx/cpu.h
+++ b/arch/arm/include/asm/arch-imx/cpu.h
@@ -25,12 +25,14 @@
 #define MXC_CPU_MX6QP		0x69
 #define MXC_CPU_MX7S		0x71 /* dummy ID */
 #define MXC_CPU_MX7D		0x72
-#define MXC_CPU_MX7ULP		0x81 /* Temporally hard code */
+#define MXC_CPU_MX8MQ		0x82
+#define MXC_CPU_MX7ULP		0xE1 /* Temporally hard code */
 #define MXC_CPU_VF610		0xF6 /* dummy ID */
 
 #define MXC_SOC_MX6		0x60
 #define MXC_SOC_MX7		0x70
-#define MXC_SOC_MX7ULP		0x80 /* dummy */
+#define MXC_SOC_MX8M		0x80
+#define MXC_SOC_MX7ULP		0xE0 /* dummy */
 
 #define CHIP_REV_1_0            0x10
 #define CHIP_REV_1_1            0x11
diff --git a/arch/arm/include/asm/mach-imx/sys_proto.h b/arch/arm/include/asm/mach-imx/sys_proto.h
index 2d8afed406..5e9218ffc7 100644
--- a/arch/arm/include/asm/mach-imx/sys_proto.h
+++ b/arch/arm/include/asm/mach-imx/sys_proto.h
@@ -27,6 +27,7 @@
 
 #define is_mx6() (is_soc_type(MXC_SOC_MX6))
 #define is_mx7() (is_soc_type(MXC_SOC_MX7))
+#define is_mx8m() (is_soc_type(MXC_SOC_MX8M))
 
 #define is_mx6dqp() (is_cpu_type(MXC_CPU_MX6QP) || is_cpu_type(MXC_CPU_MX6DP))
 #define is_mx6dq() (is_cpu_type(MXC_CPU_MX6Q) || is_cpu_type(MXC_CPU_MX6D))
-- 
2.14.1

  parent reply	other threads:[~2017-11-28 12:31 UTC|newest]

Thread overview: 58+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-28 12:31 [U-Boot] [PATCH 00/23] imx: add i.MX8M support and i.MX8MQ EVK Peng Fan
2017-11-28 12:31 ` [U-Boot] [PATCH 01/23] imx: add i.MX8M into Kconfig Peng Fan
2017-11-28 17:15   ` Stefano Babic
2017-11-29  5:49     ` Peng Fan
2017-11-29 10:04       ` Stefano Babic
2017-11-29 10:09         ` Peng Fan
2017-11-28 12:31 ` [U-Boot] [PATCH 02/23] imx: mx8m: add register definition header file Peng Fan
2017-11-28 17:40   ` Stefano Babic
2017-11-29  6:01     ` Peng Fan
2017-11-29 10:06       ` Stefano Babic
2017-12-01 20:45         ` Fabio Estevam
2017-12-01 20:46           ` Fabio Estevam
2017-11-28 12:31 ` [U-Boot] [PATCH 03/23] imx: mx8m: add pin " Peng Fan
2017-11-28 12:31 ` [U-Boot] [PATCH 04/23] imx: mx8m: add clock driver Peng Fan
2017-11-28 18:14   ` Stefano Babic
2017-11-29  6:22     ` Peng Fan
2017-11-28 12:31 ` [U-Boot] [PATCH 05/23] imx: add sip function Peng Fan
2017-11-28 18:16   ` Stefano Babic
2017-11-29 12:50     ` Peng Fan
2017-11-28 12:31 ` [U-Boot] [PATCH 06/23] imx: boot_mode: add USB_BOOT entry Peng Fan
2017-11-28 18:18   ` Stefano Babic
2017-11-28 12:31 ` [U-Boot] [PATCH 07/23] imx: cpu: update cpu file to support i.MX8M Peng Fan
2017-11-28 12:31 ` [U-Boot] [PATCH 08/23] imx: spl: implement spl_boot_device for i.MX8M Peng Fan
2017-11-29 11:40   ` Stefano Babic
2017-11-29 12:52     ` Peng Fan
2017-11-28 12:31 ` [U-Boot] [PATCH 09/23] power: pmic.h: include dm/ofnode.h Peng Fan
2017-11-29 12:27   ` Stefano Babic
2017-11-28 12:31 ` Peng Fan [this message]
2017-11-28 12:31 ` [U-Boot] [PATCH 11/23] imx: add pad settings bit definition for i.MX8M Peng Fan
2017-11-28 12:31 ` [U-Boot] [PATCH 12/23] imx: mx8m: add soc related settings and files Peng Fan
2017-11-29 12:06   ` Heiko Schocher
2017-11-29 12:59     ` Peng Fan
2017-11-29 13:21       ` Heiko Schocher
2017-11-29 13:24         ` Peng Fan
2017-11-28 12:31 ` [U-Boot] [PATCH 13/23] imx: makefile: compile files for i.MX8M Peng Fan
2017-11-28 12:31 ` [U-Boot] [PATCH 14/23] misc: ocotp: add i.MX8M support Peng Fan
2017-11-28 12:31 ` [U-Boot] [PATCH 15/23] mmc: fsl_esdhc: support i.MX8M Peng Fan
2017-11-28 12:31 ` [U-Boot] [PATCH 16/23] imx: lcdif: include i.MX8M Peng Fan
2017-11-28 12:31 ` [U-Boot] [PATCH 17/23] gpio: mxc: add i.MX8M support Peng Fan
2017-11-28 12:32 ` [U-Boot] [PATCH 18/23] imx: mx8m: add ddr register memory map Peng Fan
2017-11-28 12:32 ` [U-Boot] [PATCH 19/23] net: fec: do not access reserved register for i.MX8M Peng Fan
2017-11-28 12:32 ` [U-Boot] [PATCH 20/23] net: fec: fix build warnings for 64bits support Peng Fan
2017-11-28 12:32 ` [U-Boot] [PATCH 21/23] power: pmic/regulator allow dm be omitted by SPL Peng Fan
2017-11-29 12:27   ` Stefano Babic
2017-11-28 12:32 ` [U-Boot] [PATCH 22/23] imx: imx8mq: add dtsi file Peng Fan
2017-11-28 12:32 ` [U-Boot] [PATCH 23/23] imx: add i.MX8MQ EVK support Peng Fan
2017-11-28 14:46 ` [U-Boot] [PATCH 00/23] imx: add i.MX8M support and i.MX8MQ EVK Stefano Babic
2017-11-29  5:31   ` Peng Fan
2017-12-01  3:28     ` Peng Fan
2017-12-04 12:37       ` Stefano Babic
2017-11-28 16:42 ` Diego Dorta
2017-11-29  2:42   ` Peng Fan
2017-12-01 11:41     ` Diego Dorta
2017-11-29  9:26 ` Peter Robinson
2017-11-30  2:53   ` Peng Fan
2017-12-01 20:52     ` Fabio Estevam
2017-12-03 10:55       ` Peng Fan
2017-12-03 11:04         ` Fabio Estevam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171128123205.12610-11-peng.fan@nxp.com \
    --to=peng.fan@nxp.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.