summaryrefslogtreecommitdiff
path: root/cpu/arm_cortexa8/omap3/board.c
diff options
context:
space:
mode:
authorSanjeev Premi <premi@ti.com>2009-04-27 21:27:27 +0530
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2009-04-29 21:11:32 +0200
commit6a6b62e3aa4b340c4f8fc67b1487ddb5436c684d (patch)
tree42eb4d917cf4467ea2e498aca52be14e48bc9f56 /cpu/arm_cortexa8/omap3/board.c
parenta85693b3bd4431b05b7df608b6f7733c0f80c53e (diff)
downloadu-boot-imx-6a6b62e3aa4b340c4f8fc67b1487ddb5436c684d.zip
u-boot-imx-6a6b62e3aa4b340c4f8fc67b1487ddb5436c684d.tar.gz
u-boot-imx-6a6b62e3aa4b340c4f8fc67b1487ddb5436c684d.tar.bz2
OMAP3: Use functions print_cpuinfo() and checkboard()
Use the functions print_cpuinfo() and checkboard() to display the cpu and board specific information. These functions reuse content from the existing function display_board_info() - which has been removed. Also, updated the existig OMAP3 configurations to define: - CONFIG_DISPLAY_CPUINFO - CONFIG_DISPLAY_BOARDINFO Signed-off-by: Sanjeev Premi <premi@ti.com>
Diffstat (limited to 'cpu/arm_cortexa8/omap3/board.c')
-rw-r--r--cpu/arm_cortexa8/omap3/board.c27
1 files changed, 22 insertions, 5 deletions
diff --git a/cpu/arm_cortexa8/omap3/board.c b/cpu/arm_cortexa8/omap3/board.c
index 15ea936..51d5cf6 100644
--- a/cpu/arm_cortexa8/omap3/board.c
+++ b/cpu/arm_cortexa8/omap3/board.c
@@ -39,6 +39,8 @@
extern omap3_sysinfo sysinfo;
+extern u32 is_mem_sdr(void);
+
/******************************************************************************
* Routine: delay
* Description: spinning delay to use before udelay works
@@ -272,11 +274,6 @@ int dram_init(void)
{
DECLARE_GLOBAL_DATA_PTR;
unsigned int size0 = 0, size1 = 0;
- u32 btype;
-
- btype = get_board_type();
-
- display_board_info(btype);
/*
* If a second bank of DDR is attached to CS1 this is
@@ -342,3 +339,23 @@ U_BOOT_CMD(
);
#endif /* CONFIG_NAND_OMAP_GPMC */
+
+#ifdef CONFIG_DISPLAY_BOARDINFO
+/**
+ * Print board information
+ */
+int checkboard (void)
+{
+ char *mem_s ;
+
+ if (is_mem_sdr())
+ mem_s = "mSDR";
+ else
+ mem_s = "LPDDR";
+
+ printf("%s + %s/%s\n", sysinfo.board_string, mem_s,
+ sysinfo.nand_string);
+
+ return 0;
+}
+#endif /* CONFIG_DISPLAY_BOARDINFO */