]> git.sur5r.net Git - u-boot/commitdiff
am33xx: Move some variables in emif4.c, mark them static.
authorTom Rini <trini@ti.com>
Mon, 30 Jul 2012 21:13:16 +0000 (14:13 -0700)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 1 Sep 2012 12:58:13 +0000 (14:58 +0200)
We need vtpreg and ddrctrl but no longer need a second ddrregs.

Signed-off-by: Tom Rini <trini@ti.com>
arch/arm/cpu/armv7/am33xx/emif4.c

index 3bb91d3c90b274eaaf21dcedbf238ebd85bcd950..abeebf2f83cec8889c9b37a57be9add7e4147396 100644 (file)
 
 DECLARE_GLOBAL_DATA_PTR;
 
-struct ddr_regs *ddrregs = (struct ddr_regs *)DDR_PHY_BASE_ADDR;
-struct vtp_reg *vtpreg = (struct vtp_reg *)VTP0_CTRL_ADDR;
-struct ddr_ctrl *ddrctrl = (struct ddr_ctrl *)DDR_CTRL_ADDR;
-
 int dram_init(void)
 {
        /* dram_init must store complete ramsize in gd->ram_size */
@@ -48,6 +44,9 @@ void dram_init_banksize(void)
 
 
 #ifdef CONFIG_SPL_BUILD
+static struct vtp_reg *vtpreg = (struct vtp_reg *)VTP0_CTRL_ADDR;
+static struct ddr_ctrl *ddrctrl = (struct ddr_ctrl *)DDR_CTRL_ADDR;
+
 static const struct ddr_data ddr2_data = {
        .datardsratio0 = ((DDR2_RD_DQS<<30)|(DDR2_RD_DQS<<20)
                                |(DDR2_RD_DQS<<10)|(DDR2_RD_DQS<<0)),