From mboxrd@z Thu Jan 1 00:00:00 1970 From: Igor Grinberg Date: Sun, 30 Aug 2015 16:33:38 +0300 Subject: [U-Boot] [PATCH 2/3] arm: mx6: cm-fx6: print PCB revision In-Reply-To: <1440938209-1731-3-git-send-email-nikita@compulab.co.il> References: <1440938209-1731-1-git-send-email-nikita@compulab.co.il> <1440938209-1731-3-git-send-email-nikita@compulab.co.il> Message-ID: <55E30632.1010904@compulab.co.il> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 08/30/15 15:36, Nikita Kiryanov wrote: > Print board revision for cm-fx6. > > Cc: Stefano Babic > Cc: Igor Grinberg > Signed-off-by: Nikita Kiryanov Acked-by: Igor Grinberg > --- > board/compulab/cm_fx6/cm_fx6.c | 7 +++++++ > include/configs/cm_fx6.h | 1 + > 2 files changed, 8 insertions(+) > > diff --git a/board/compulab/cm_fx6/cm_fx6.c b/board/compulab/cm_fx6/cm_fx6.c > index 668d221..3ad1216 100644 > --- a/board/compulab/cm_fx6/cm_fx6.c > +++ b/board/compulab/cm_fx6/cm_fx6.c > @@ -645,6 +645,13 @@ int checkboard(void) > return 0; > } > > +int misc_init_r(void) > +{ > + cl_print_pcb_info(); > + > + return 0; > +} > + > void dram_init_banksize(void) > { > gd->bd->bi_dram[0].start = PHYS_SDRAM_1; > diff --git a/include/configs/cm_fx6.h b/include/configs/cm_fx6.h > index ddf6b5f..12734a1 100644 > --- a/include/configs/cm_fx6.h > +++ b/include/configs/cm_fx6.h > @@ -224,6 +224,7 @@ > #define CONFIG_SYS_MALLOC_LEN (10 * 1024 * 1024) > #define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 800 /* 400 KB */ > #define CONFIG_OF_BOARD_SETUP > +#define CONFIG_MISC_INIT_R > > /* SPL */ > #include "imx6_spl.h" > -- Regards, Igor.