]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm, da850: staticize funtions
authorManish Badarkhe <badarkhe.manish@gmail.com>
Fri, 11 Apr 2014 02:32:04 +0000 (08:02 +0530)
committerTom Rini <trini@ti.com>
Thu, 17 Apr 2014 21:24:40 +0000 (17:24 -0400)
Make funtions static which are locally used in file
and remove the declaration from header file.

Signed-off-by: Manish Badarkhe <badarkhe.manish@gmail.com>
arch/arm/cpu/arm926ejs/davinci/da850_lowlevel.c
arch/arm/include/asm/arch-davinci/da850_lowlevel.h

index a3bbbb869dc259e9d44fb790a8c0ab3b6b48fab2..b91e948ce3e1450cdf6e8129e2aa1132abcea200 100644 (file)
@@ -26,7 +26,7 @@ void davinci_enable_uart0(void)
 }
 
 #if defined(CONFIG_SYS_DA850_PLL_INIT)
-void da850_waitloop(unsigned long loopcnt)
+static void da850_waitloop(unsigned long loopcnt)
 {
        unsigned long   i;
 
@@ -34,7 +34,7 @@ void da850_waitloop(unsigned long loopcnt)
                asm("   NOP");
 }
 
-int da850_pll_init(struct davinci_pllc_regs *reg, unsigned long pllmult)
+static int da850_pll_init(struct davinci_pllc_regs *reg, unsigned long pllmult)
 {
        if (reg == davinci_pllc0_regs)
                /* Unlock PLL registers. */
@@ -160,7 +160,7 @@ int da850_pll_init(struct davinci_pllc_regs *reg, unsigned long pllmult)
 #endif /* CONFIG_SYS_DA850_PLL_INIT */
 
 #if defined(CONFIG_SYS_DA850_DDR_INIT)
-int da850_ddr_setup(void)
+static int da850_ddr_setup(void)
 {
        unsigned long   tmp;
 
index 7f9c3f6bce3f9ffbc69a7c164372eb894b9268d0..45a325c123c721489b6edd9cb460631b6ff23252 100644 (file)
@@ -26,11 +26,8 @@ extern const int lpsc_size;
 #define dv_maskbits(addr, val) \
        writel((readl(addr) & val), addr)
 
-void da850_waitloop(unsigned long loopcnt);
-int da850_pll_init(struct davinci_pllc_regs *reg, unsigned long pllmult);
 void da850_lpc_transition(unsigned char pscnum, unsigned char module,
                unsigned char domain, unsigned char state);
-int da850_ddr_setup(void);
 void da850_psc_init(void);
 void da850_pinmux_ctl(unsigned long offset, unsigned long mask,
        unsigned long value);