summaryrefslogtreecommitdiff
path: root/include/asm-arm/arch-mx6
diff options
context:
space:
mode:
authorFugang Duan <B38611@freescale.com>2012-03-20 14:23:29 +0800
committerFugang Duan <B38611@freescale.com>2012-03-20 14:38:55 +0800
commit99db93a95b96ee389efe028e65bb91505d1d1f5e (patch)
treeafb0f1276302af3bd4ea1b207f555c57ff280271 /include/asm-arm/arch-mx6
parent34bd725fcc22e8e2435bbb7b3b51c05376ea9619 (diff)
downloadu-boot-imx-99db93a95b96ee389efe028e65bb91505d1d1f5e.zip
u-boot-imx-99db93a95b96ee389efe028e65bb91505d1d1f5e.tar.gz
u-boot-imx-99db93a95b96ee389efe028e65bb91505d1d1f5e.tar.bz2
ENGR00177244 - imx6 : Use common fsl_sys_rev to check board reversion
- Use fsl_sys_rev to check Sebreauto board reversion. - Add macro define for expedient print the board and chip name. mx6_chip_name() mx6_board_rev_name() Signed-off-by: Fugang Duan <B38611@freescale.com>
Diffstat (limited to 'include/asm-arm/arch-mx6')
-rw-r--r--include/asm-arm/arch-mx6/mx6.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asm-arm/arch-mx6/mx6.h b/include/asm-arm/arch-mx6/mx6.h
index 5d7a07f..ce03e21 100644
--- a/include/asm-arm/arch-mx6/mx6.h
+++ b/include/asm-arm/arch-mx6/mx6.h
@@ -647,6 +647,16 @@
#define mx6_chip_is_solo() chip_is_type(fsl_system_rev, CHIP_TYPE_SOLO)
#define mx6_chip_is_sololite() chip_is_type(fsl_system_rev, CHIP_TYPE_SOLOLITE)
+#define mx6_chip_dq_name "i.MX6Q"
+#define mx6_chip_dl_solo_name "i.MX6DL/Solo"
+#define mx6_chip_sololite_name "i.MX6SoloLite"
+#define mx6_chip_name() (mx6_chip_is_dq() ? mx6_chip_dq_name : \
+ ((mx6_chip_is_dl() | mx6_chip_is_solo()) ? mx6_chip_dl_solo_name : \
+ (mx6_chip_is_sololite() ? mx6_chip_sololite_name : "unknown-chip")))
+#define mx6_board_rev_name() (mx6_board_is_reva() ? "RevA" : \
+ (mx6_board_is_revb() ? "RevB" : \
+ (mx6_board_is_revc() ? "RevC" : "unknown-board")))
+
#ifndef __ASSEMBLER__
enum boot_device {