diff options
author | Helmut Raiger <helmut.raiger@hale.at> | 2012-02-15 22:40:12 +0000 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2012-02-27 21:19:25 +0100 |
commit | d1300f76862e78ad0f06fca0680c21aa2d1a4eff (patch) | |
tree | 27e16a205dcfa886f7ebb91bccb897ea8062212e /board | |
parent | 0b87e010f8774a975c2353f03105de824c55fb83 (diff) | |
download | u-boot-imx-d1300f76862e78ad0f06fca0680c21aa2d1a4eff.zip u-boot-imx-d1300f76862e78ad0f06fca0680c21aa2d1a4eff.tar.gz u-boot-imx-d1300f76862e78ad0f06fca0680c21aa2d1a4eff.tar.bz2 |
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')
-rw-r--r-- | board/hale/tt01/tt01.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/board/hale/tt01/tt01.c b/board/hale/tt01/tt01.c index ed3fa6e..02e75ed 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 |