]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
omap-common: SPL: Add CONFIG_SPL_DISPLAY_PRINT / spl_display_print()
authorTom Rini <trini@ti.com>
Mon, 13 Aug 2012 18:37:56 +0000 (11:37 -0700)
committerTom Rini <trini@ti.com>
Thu, 27 Sep 2012 16:48:38 +0000 (09:48 -0700)
Only omap4/5 currently have a meaningful set of display text and overo
had been adding a function to display nothing.  Change how this works to
be opt-in and only turned on for omap4/5 now.

Signed-off-by: Tom Rini <trini@ti.com>
README
arch/arm/cpu/armv7/omap-common/hwinit-common.c
arch/arm/cpu/armv7/omap-common/spl.c
arch/arm/include/asm/arch-omap4/sys_proto.h
arch/arm/include/asm/arch-omap5/sys_proto.h
arch/arm/include/asm/omap_common.h
board/overo/overo.c
include/configs/omap4_common.h
include/configs/omap5_evm.h

diff --git a/README b/README
index 5793b0a2069ad5c2fac40f29c7b9c9a5c4d1e5f2..309d88dce426dbee66022a4a4cd6e22e729805c4 100644 (file)
--- a/README
+++ b/README
@@ -2597,6 +2597,10 @@ FIT uImage format:
                CONFIG_SYS_SPL_MALLOC_SIZE
                The size of the malloc pool used in SPL.
 
+               CONFIG_SPL_DISPLAY_PRINT
+               For ARM, enable an optional function to print more information
+               about the running system.
+
                CONFIG_SPL_LIBCOMMON_SUPPORT
                Support for common/libcommon.o in SPL binary
 
index 459ebb55e572ab7bf78eb16f59a45b259ef28154..4d7ef5c524a599cbbf827f63c5f0eca3d02107a2 100644 (file)
@@ -92,6 +92,11 @@ static void init_boot_params(void)
 {
        boot_params_ptr = (u32 *) &boot_params;
 }
+
+void spl_display_print(void)
+{
+       omap_rev_string();
+}
 #endif
 
 /*
index 4d1ac85d0091de429ccda8e341713ba0aa1c62e3..b10832a7e0a7c5647f7f49a898b9ca7126762436 100644 (file)
@@ -219,10 +219,7 @@ void preloader_console_init(void)
 
        printf("\nU-Boot SPL %s (%s - %s)\n", u_boot_rev, U_BOOT_DATE,
                U_BOOT_TIME);
-       omap_rev_string();
-}
-
-void __weak omap_rev_string()
-{
-       printf("Texas Instruments Revision detection unimplemented\n");
+#ifdef CONFIG_SPL_DISPLAY_PRINT
+       spl_display_print();
+#endif
 }
index d633573c258b3b0e781dc93b681266d04d617e25..b48f81dc336d110970f93d4d4d78b7c4665a237a 100644 (file)
@@ -42,7 +42,6 @@ void sr32(void *, u32, u32, u32);
 u32 wait_on_value(u32, u32, void *, u32);
 void sdelay(unsigned long);
 void set_pl310_ctrl_reg(u32 val);
-void omap_rev_string(void);
 void setup_clocks_for_console(void);
 void prcm_init(void);
 void bypass_dpll(u32 *const base);
index 74feb90277c993b0cda2bafe230db2a3bccf14a5..72e9df7881e968814fb03ec1049b51522fbb5840 100644 (file)
@@ -42,7 +42,6 @@ void set_muxconf_regs_non_essential(void);
 void sr32(void *, u32, u32, u32);
 u32 wait_on_value(u32, u32, void *, u32);
 void sdelay(unsigned long);
-void omap_rev_string(void);
 void setup_clocks_for_console(void);
 void prcm_init(void);
 void bypass_dpll(u32 *const base);
index 71ef9b077f45b3c7b9ea1f1c8e7e0d449cc57ff2..65b566c037cc63b755fe8adcc5a8abaeb0cf2437 100644 (file)
@@ -94,9 +94,9 @@ u32 omap_boot_mode(void);
 
 /* SPL common function s*/
 void spl_parse_image_header(const struct image_header *header);
-void omap_rev_string(void);
 void spl_board_prepare_for_linux(void);
 int spl_start_uboot(void);
+void spl_display_print(void);
 
 /* NAND SPL functions */
 void spl_nand_load_image(void);
index f973870830c0c05a08af1081a6a70dc4e1338e5b..c6d50a07acabc18296474b5581c5c41026a86c99 100644 (file)
@@ -100,16 +100,6 @@ int board_init(void)
        return 0;
 }
 
-/*
- * Routine: omap_rev_string
- * Description: For SPL builds output board rev
- */
-#ifdef CONFIG_SPL_BUILD
-void omap_rev_string(void)
-{
-}
-#endif
-
 /*
  * Routine: get_board_revision
  * Description: Returns the board revision
index ee0c4b9d9b657080055fd599683d0ffed5b88944..c1c2fa9f3cccb093b11aa7476b5f402352a1561d 100644 (file)
 #define CONFIG_SPL_TEXT_BASE           0x40304350
 #define CONFIG_SPL_MAX_SIZE            (38 * 1024)
 #define CONFIG_SPL_STACK               CONFIG_SYS_INIT_SP_ADDR
+#define CONFIG_SPL_DISPLAY_PRINT
 
 /*
  * 64 bytes before this address should be set aside for u-boot.img's
index 4f0a6c13582c75e7968fc740b741d44fffa3dc93..b4a237ac0c2e8456005a9f01ef523204fa6fdb12 100644 (file)
 #define CONFIG_SPL_TEXT_BASE           0x40300350
 #define CONFIG_SPL_MAX_SIZE            0x19000 /* 100K */
 #define CONFIG_SPL_STACK               CONFIG_SYS_INIT_SP_ADDR
+#define CONFIG_SPL_DISPLAY_PRINT
 
 #define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR        0x300 /* address 0x60000 */
 #define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS     0x200 /* 256 KB */