]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
OMAP3 SPL: Provide weak omap_rev_string
authorTom Rini <trini@ti.com>
Tue, 4 Oct 2011 04:59:23 +0000 (04:59 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Thu, 27 Oct 2011 19:56:35 +0000 (21:56 +0200)
We add an weak version of omap_rev_string in omap-common/spl.c
and while at it drop the omap3 version.  Move the prototype over
to <asm/omap_common.h> with the other SPL functions.

Signed-off-by: Tom Rini <trini@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
arch/arm/cpu/armv7/omap-common/spl.c
arch/arm/cpu/armv7/omap3/board.c
arch/arm/include/asm/arch-omap3/sys_proto.h
arch/arm/include/asm/arch-omap4/sys_proto.h
arch/arm/include/asm/omap_common.h

index 01fd58a354f3cd405625f983c1ac83416cb07152..d0866c03d0108bbaedef5f65c7649cf13e394ede 100644 (file)
@@ -160,3 +160,11 @@ void preloader_console_init(void)
        omap_rev_string(rev_string_buffer);
        printf("Texas Instruments %s\n", rev_string_buffer);
 }
+
+void __omap_rev_string(char *str)
+{
+       sprintf(str, "Revision detection unimplemented");
+}
+
+void omap_rev_string(char *str)
+       __attribute__((weak, alias("__omap_rev_string")));
index 1b3ef69a99da3a857ed5f74ba11cbbbb0a52838e..a9fdb4f8ed918f22516f0ab3e064052d6f011c08 100644 (file)
@@ -450,9 +450,3 @@ void enable_caches(void)
        dcache_enable();
 }
 #endif
-
-void omap_rev_string(char *omap_rev_string)
-{
-       sprintf(omap_rev_string, "OMAP3, sorry revision detection" \
-               " unimplemented");
-}
index 7b6005134472d953ff3e8be7a04484b4ab97981f..995e7cb57e6eb712084cc46cbc5e8c94d81f491f 100644 (file)
@@ -71,5 +71,4 @@ void power_init_r(void);
 void dieid_num_r(void);
 void do_omap3_emu_romcode_call(u32 service_id, u32 parameters);
 void omap3_gp_romcode_call(u32 service_id, u32 parameter);
-void omap_rev_string(char *omap_rev_string);
 #endif
index a81f8e5c24051c01f204b9b554896c18872108e9..1aacbb12e3f28d489e9ed3552a0500442120cbcc 100644 (file)
@@ -43,7 +43,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(char *omap4_rev_string);
 void setup_clocks_for_console(void);
 void prcm_init(void);
 void bypass_dpll(u32 *const base);
index 66d6b71c1a744d530d3596368287266fb1b76612..3f2f004afb67b5bead329aee5dde23fe0d74fc82 100644 (file)
@@ -77,6 +77,7 @@ u32 omap_boot_mode(void);
 
 /* SPL common function s*/
 void spl_parse_image_header(const struct image_header *header);
+void omap_rev_string(char *omap_rev_string);
 
 /* NAND SPL functions */
 void spl_nand_load_image(void);