summaryrefslogtreecommitdiff
path: root/board/omap5912osk/omap5912osk.c
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2006-05-10 10:55:16 +0200
committerStefan Roese <sr@denx.de>2006-05-10 10:55:16 +0200
commit6080a0eb63dacc85ba703dca90271be866112da6 (patch)
treea405f7266bdc4248b2572ef8488a6f7169c5029d /board/omap5912osk/omap5912osk.c
parent4af099bda90fe602aff96b2fd914fca89f320c5c (diff)
downloadu-boot-imx-6080a0eb63dacc85ba703dca90271be866112da6.zip
u-boot-imx-6080a0eb63dacc85ba703dca90271be866112da6.tar.gz
u-boot-imx-6080a0eb63dacc85ba703dca90271be866112da6.tar.bz2
Update omap5912osk board support
- Fix OMAP support that omap5912osk compiles in current source tree - Update with code from "http://omap.spectrumdigital.com/osk5912" to fix problems with DDR initialization - Fix timer setup - Use CFI flash driver and support complete 32MB of onboard flash - Add "print_cpuinfo()" and "checkboard()" functions to display CPU (with frequency) and Board infos Patch by Stefan Roese, 10 May 2006
Diffstat (limited to 'board/omap5912osk/omap5912osk.c')
-rw-r--r--board/omap5912osk/omap5912osk.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/board/omap5912osk/omap5912osk.c b/board/omap5912osk/omap5912osk.c
index e9e6b0e..6993b13 100644
--- a/board/omap5912osk/omap5912osk.c
+++ b/board/omap5912osk/omap5912osk.c
@@ -288,3 +288,21 @@ void peripheral_power_enable (void)
*SW_CLOCK_REQUEST |= UART1_48MHZ_ENABLE;
}
+
+/*
+ * Check Board Identity
+ */
+int checkboard(void)
+{
+ char *s = getenv("serial#");
+
+ puts("Board: OSK5912");
+
+ if (s != NULL) {
+ puts(", serial# ");
+ puts(s);
+ }
+ putc('\n');
+
+ return (0);
+}