summaryrefslogtreecommitdiff
path: root/board/atmel/at91sam9rlek/at91sam9rlek.c
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2008-10-28 08:37:19 +0100
committerWolfgang Denk <wd@denx.de>2008-10-28 08:37:19 +0100
commitd35c451d6cff3e77e40fbdfc7a2933cdcb86ae4b (patch)
treeb9cabe836db20373a8e645b30be6c0aa6eb7896a /board/atmel/at91sam9rlek/at91sam9rlek.c
parenta369f4a492fa2805d87775d27380f0eeaca35aa6 (diff)
parent6b59e03e0237a40a2305ea385defdfd92000978b (diff)
downloadu-boot-imx-d35c451d6cff3e77e40fbdfc7a2933cdcb86ae4b.zip
u-boot-imx-d35c451d6cff3e77e40fbdfc7a2933cdcb86ae4b.tar.gz
u-boot-imx-d35c451d6cff3e77e40fbdfc7a2933cdcb86ae4b.tar.bz2
Merge branch 'master' of git://git.denx.de/u-boot-video
Diffstat (limited to 'board/atmel/at91sam9rlek/at91sam9rlek.c')
-rw-r--r--board/atmel/at91sam9rlek/at91sam9rlek.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/board/atmel/at91sam9rlek/at91sam9rlek.c b/board/atmel/at91sam9rlek/at91sam9rlek.c
index 7bf1f43..37e371f 100644
--- a/board/atmel/at91sam9rlek/at91sam9rlek.c
+++ b/board/atmel/at91sam9rlek/at91sam9rlek.c
@@ -181,6 +181,35 @@ static void at91sam9rlek_lcd_hw_init(void)
gd->fb_base = 0;
}
+
+#ifdef CONFIG_LCD_INFO
+#include <nand.h>
+#include <version.h>
+
+void lcd_show_board_info(void)
+{
+ ulong dram_size, nand_size;
+ int i;
+ char temp[32];
+
+ lcd_printf ("%s\n", U_BOOT_VERSION);
+ lcd_printf ("(C) 2008 ATMEL Corp\n");
+ lcd_printf ("at91support@atmel.com\n");
+ lcd_printf ("%s CPU at %s MHz\n",
+ AT91_CPU_NAME,
+ strmhz(temp, AT91_MAIN_CLOCK));
+
+ dram_size = 0;
+ for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++)
+ dram_size += gd->bd->bi_dram[i].size;
+ nand_size = 0;
+ for (i = 0; i < CONFIG_SYS_MAX_NAND_DEVICE; i++)
+ nand_size += nand_info[i].size;
+ lcd_printf (" %ld MB SDRAM, %ld MB NAND\n",
+ dram_size >> 20,
+ nand_size >> 20 );
+}
+#endif /* CONFIG_LCD_INFO */
#endif