From 99db93a95b96ee389efe028e65bb91505d1d1f5e Mon Sep 17 00:00:00 2001 From: Fugang Duan Date: Tue, 20 Mar 2012 14:23:29 +0800 Subject: 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 --- include/asm-arm/arch-mx6/mx6.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') 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 { -- cgit v1.1