From 524884460ef40abe19617e9a2855d1f88a978af4 Mon Sep 17 00:00:00 2001 From: Marcel Ziswiler Date: Wed, 20 Nov 2013 17:19:10 +0100 Subject: colibri_vf: implement module type auto detection Implement module type (e.g. VF50 vs. VF61) auto detection based on L2 cache availability. Set specific ARM core clock (e.g. 400 vs. 500 MHz) as well as Linux machine id number. While at it actually use memargs instead of hard-coded mem= value. While at it fix sdboot command if initially booting U-Boot from NAND by doing an explicit mmc part 0. --- board/toradex/colibri_vf61/colibri_vf61.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'board') diff --git a/board/toradex/colibri_vf61/colibri_vf61.c b/board/toradex/colibri_vf61/colibri_vf61.c index 35c8f7768c..97eaa9e6c4 100644 --- a/board/toradex/colibri_vf61/colibri_vf61.c +++ b/board/toradex/colibri_vf61/colibri_vf61.c @@ -212,7 +212,10 @@ int board_mmc_init(bd_t *bis) int checkboard(void) { - puts("Board: Colibri VF61\n"); + if (__raw_readl(MSCM_CP0CFG1)) + puts("Board: Colibri VF61\n"); + else + puts("Board: Colibri VF50\n"); return 0; } -- cgit v1.2.3