summaryrefslogtreecommitdiffstats
path: root/board/hale
diff options
context:
space:
mode:
authorHelmut Raiger <helmut.raiger@hale.at>2012-02-15 22:40:12 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-02-27 21:19:25 +0100
commitd1300f76862e78ad0f06fca0680c21aa2d1a4eff (patch)
tree27e16a205dcfa886f7ebb91bccb897ea8062212e /board/hale
parent0b87e010f8774a975c2353f03105de824c55fb83 (diff)
downloadblackbird-obmc-uboot-d1300f76862e78ad0f06fca0680c21aa2d1a4eff.tar.gz
blackbird-obmc-uboot-d1300f76862e78ad0f06fca0680c21aa2d1a4eff.zip
tt01: add video support
The video setup for the Epson display is provided. Addtionally some extra info is displayed next to the Linux logo. Make get_cpu_rev() publicly available (added to sys_proto.h). Signed-off-by: Helmut Raiger <helmut.raiger@hale.at>
Diffstat (limited to 'board/hale')
-rw-r--r--board/hale/tt01/tt01.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/board/hale/tt01/tt01.c b/board/hale/tt01/tt01.c
index ed3fa6ef9a..02e75edb40 100644
--- a/board/hale/tt01/tt01.c
+++ b/board/hale/tt01/tt01.c
@@ -228,3 +228,24 @@ int board_eth_init(bd_t *bis)
#endif
return rc;
}
+
+#ifdef CONFIG_CONSOLE_EXTRA_INFO
+void video_get_info_str(int line_number, char *info)
+{
+ u32 srev = get_cpu_rev();
+
+ switch (line_number) {
+ case 2:
+ sprintf(info, " CPU : Freescale i.MX31 rev %d.%d%s at %d MHz",
+ (srev & 0xF0) >> 4, (srev & 0x0F),
+ ((srev & 0x8000) ? " unknown" : ""),
+ mxc_get_clock(MXC_ARM_CLK) / 1000000);
+ break;
+ case 3:
+ strcpy(info, " " BOARD_STRING);
+ break;
+ default:
+ info[0] = 0;
+ }
+}
+#endif
OpenPOWER on IntegriCloud