]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
omap3: use device specific naming for mem_init
authorMaxim Uvarov <maxim.uvarov@linaro.org>
Tue, 26 Dec 2023 15:46:18 +0000 (21:46 +0600)
committerTom Rini <trini@konsulko.com>
Thu, 11 Jan 2024 16:24:58 +0000 (11:24 -0500)
Use device specific naming for functions so as to not overlap
with common function names.

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
arch/arm/include/asm/arch-omap3/mem.h
arch/arm/mach-omap2/omap3/board.c
arch/arm/mach-omap2/omap3/emif4.c
arch/arm/mach-omap2/omap3/sdrc.c

index 569779c55e4851c86804b7704953f75ba2132422..fce3568eca149391b670c3ace3ca1a30cb922c15 100644 (file)
@@ -475,7 +475,7 @@ enum {
 #ifndef __ASSEMBLY__
 
 /* Function prototypes */
-void mem_init(void);
+void omap3_mem_init(void);
 
 u32 is_mem_sdr(void);
 u32 mem_ok(u32 cs);
index 8b70251457e2248d7e5bb131e2ef6b18c98b166c..c76a95dd5d09a0ef4e2a07fa7ce22ce658f6a235 100644 (file)
@@ -216,7 +216,7 @@ void s_init(void)
 void board_init_f(ulong dummy)
 {
        early_system_init();
-       mem_init();
+       omap3_mem_init();
        /*
        * Save the boot parameters passed from romcode.
        * We cannot delay the saving further than this,
index 7e5a28192202e880ccd5b23c086a5145d2a4b4fe..4fbfb387ab085b4536e077fc8880e365363d0ede 100644 (file)
@@ -159,10 +159,10 @@ int dram_init_banksize(void)
 }
 
 /*
- * mem_init() -
+ * omap3_mem_init() -
  *  - Initialize memory subsystem
  */
-void mem_init(void)
+void omap3_mem_init(void)
 {
        do_emif4_init();
 }
index 5d43e7c9cf453601a575ec5c6e5f369e185bbc3c..4d27d82c7881eb90ae723d6b4a620d65690437a6 100644 (file)
@@ -4,7 +4,7 @@
  *
  * This file has been created after exctracting and consolidating
  * the SDRC related content from mem.c and board.c, also created
- * generic init function (mem_init).
+ * generic init function (omap3_mem_init).
  *
  * Copyright (C) 2004-2010
  * Texas Instruments Incorporated - https://www.ti.com/
@@ -232,11 +232,11 @@ int dram_init_banksize(void)
 }
 
 /*
- * mem_init -
+ * omap3_mem_init -
  *  - Init the sdrc chip,
  *  - Selects CS0 and CS1,
  */
-void mem_init(void)
+void omap3_mem_init(void)
 {
        /* only init up first bank here */
        do_sdrc_init(CS0, EARLY_INIT);