public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH V2 01/15] imx-common: introduce simpler macros for runtime dection
@ 2016-05-23 10:35 Peng Fan
  2016-05-23 10:35 ` [U-Boot] [PATCH V2 02/15] imx: mx6: support i.MX6SOLO when enable/disable_ldb_di_clock_sources Peng Fan
                   ` (15 more replies)
  0 siblings, 16 replies; 18+ messages in thread
From: Peng Fan @ 2016-05-23 10:35 UTC (permalink / raw)
  To: u-boot

Introduce simpler macros for runtime cpu dection.

Signed-off-by: Peng Fan <van.freenix@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
---
 arch/arm/include/asm/imx-common/sys_proto.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/include/asm/imx-common/sys_proto.h b/arch/arm/include/asm/imx-common/sys_proto.h
index 386c2dc..32f95b3 100644
--- a/arch/arm/include/asm/imx-common/sys_proto.h
+++ b/arch/arm/include/asm/imx-common/sys_proto.h
@@ -24,7 +24,15 @@
 #define is_cpu_type(cpu) (get_cpu_type() == cpu)
 #define is_soc_type(soc) (get_soc_type() == soc)
 
+#define is_mx6() (is_soc_type(MXC_SOC_MX6))
+#define is_mx7() (is_soc_type(MXC_SOC_MX7))
+
 #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))
+#define is_mx6sdl() (is_cpu_type(MXC_CPU_MX6SOLO) || is_cpu_type(MXC_CPU_MX6DL))
+#define is_mx6sx() (is_cpu_type(MXC_CPU_MX6SX))
+#define is_mx6sl() (is_cpu_type(MXC_CPU_MX6SL))
+#define is_mx6ul() (is_cpu_type(MXC_CPU_MX6UL))
 
 u32 get_nr_cpus(void);
 u32 get_cpu_rev(void);
-- 
2.6.2

^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2016-05-24 15:15 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-23 10:35 [U-Boot] [PATCH V2 01/15] imx-common: introduce simpler macros for runtime dection Peng Fan
2016-05-23 10:35 ` [U-Boot] [PATCH V2 02/15] imx: mx6: support i.MX6SOLO when enable/disable_ldb_di_clock_sources Peng Fan
2016-05-23 10:35 ` [U-Boot] [PATCH V2 03/15] imx: mx6: use simpler runtime cpu dection macros Peng Fan
2016-05-23 10:35 ` [U-Boot] [PATCH V2 04/15] imx-common: hab: support i.MX6SOLO Peng Fan
2016-05-23 10:35 ` [U-Boot] [PATCH V2 05/15] imx-common: use simpler runtime cpu dection macros Peng Fan
2016-05-23 10:35 ` [U-Boot] [PATCH V2 06/15] imx: mx6: ddr: support i.MX6D/QPlus Peng Fan
2016-05-23 10:35 ` [U-Boot] [PATCH V2 07/15] imx: mx6: correct get_cpu_speed_grade_hz for i.MX6DQP Peng Fan
2016-05-23 10:35 ` [U-Boot] [PATCH V2 08/15] imx-common: hab: support i.MX6DQPlus Peng Fan
2016-05-23 10:36 ` [U-Boot] [PATCH V2 09/15] imx-common: sata: return failure if not i.MX6DQPlus Peng Fan
2016-05-23 10:36 ` [U-Boot] [PATCH V2 10/15] imx-common: timer: support i.MX6DQPlus Peng Fan
2016-05-23 10:36 ` [U-Boot] [PATCH V2 11/15] mtd: nand: mxs: use simpler runtime cpu dection macros Peng Fan
2016-05-23 10:36 ` [U-Boot] [PATCH V2 12/15] ocotp: mxc: " Peng Fan
2016-05-23 10:36 ` [U-Boot] [PATCH V2 13/15] net: fec_mxc: " Peng Fan
2016-05-24 15:15   ` Joe Hershberger
2016-05-23 10:36 ` [U-Boot] [PATCH V2 14/15] block: dwc_ahsata: support i.MX6DQPlus Peng Fan
2016-05-23 10:36 ` [U-Boot] [PATCH V2 15/15] board: mx6sabresd/auto: use simpler runtime cpu dection macros Peng Fan
2016-05-23 16:19 ` [U-Boot] [PATCH V2 01/15] imx-common: introduce simpler macros for runtime dection Stefano Babic
2016-05-24 13:04 ` Stefano Babic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox