mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-20 22:21:41 +00:00
omap4: make omap4 code common for future reuse
Much of omap4 soc support code can be reused for omap5. Move them to the omap-common directory to facilitate this. Signed-off-by: sricharan <r.sricharan@ti.com> Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
This commit is contained in:
parent
24ccca5eb9
commit
ce170beeb7
7 changed files with 16 additions and 9 deletions
|
@ -33,6 +33,13 @@ ifdef CONFIG_OMAP
|
||||||
COBJS += gpio.o
|
COBJS += gpio.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifdef CONFIG_OMAP44XX
|
||||||
|
COBJS += hwinit-common.o
|
||||||
|
COBJS += clocks-common.o
|
||||||
|
COBJS += emif-common.o
|
||||||
|
SOBJS += lowlevel_init.o
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef CONFIG_SPL_BUILD
|
ifdef CONFIG_SPL_BUILD
|
||||||
COBJS += spl.o
|
COBJS += spl.o
|
||||||
ifdef CONFIG_SPL_NAND_SUPPORT
|
ifdef CONFIG_SPL_NAND_SUPPORT
|
||||||
|
@ -43,6 +50,12 @@ COBJS += spl_mmc.o
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifndef CONFIG_SPL_BUILD
|
||||||
|
ifdef CONFIG_OMAP44XX
|
||||||
|
COBJS += mem-common.o
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
|
||||||
OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
|
OBJS := $(addprefix $(obj),$(SOBJS) $(COBJS))
|
||||||
|
|
||||||
|
|
|
@ -1218,9 +1218,9 @@ void sdram_init(void)
|
||||||
in_sdram = running_from_sdram();
|
in_sdram = running_from_sdram();
|
||||||
debug("in_sdram = %d\n", in_sdram);
|
debug("in_sdram = %d\n", in_sdram);
|
||||||
|
|
||||||
if (!in_sdram) {
|
if (!in_sdram)
|
||||||
bypass_dpll(&prcm->cm_clkmode_dpll_core);
|
bypass_dpll(&prcm->cm_clkmode_dpll_core);
|
||||||
}
|
|
||||||
|
|
||||||
do_sdram_init(OMAP44XX_EMIF1);
|
do_sdram_init(OMAP44XX_EMIF1);
|
||||||
do_sdram_init(OMAP44XX_EMIF2);
|
do_sdram_init(OMAP44XX_EMIF2);
|
|
@ -34,7 +34,7 @@
|
||||||
#include <asm/sizes.h>
|
#include <asm/sizes.h>
|
||||||
#include <asm/arch/emif.h>
|
#include <asm/arch/emif.h>
|
||||||
#include <asm/arch/gpio.h>
|
#include <asm/arch/gpio.h>
|
||||||
#include "omap4_mux_data.h"
|
#include "../omap4/omap4_mux_data.h"
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
|
@ -25,15 +25,9 @@ include $(TOPDIR)/config.mk
|
||||||
|
|
||||||
LIB = $(obj)lib$(SOC).o
|
LIB = $(obj)lib$(SOC).o
|
||||||
|
|
||||||
SOBJS += lowlevel_init.o
|
|
||||||
|
|
||||||
COBJS += board.o
|
|
||||||
COBJS += clocks.o
|
|
||||||
COBJS += emif.o
|
|
||||||
COBJS += sdram_elpida.o
|
COBJS += sdram_elpida.o
|
||||||
|
|
||||||
ifndef CONFIG_SPL_BUILD
|
ifndef CONFIG_SPL_BUILD
|
||||||
COBJS += mem.o
|
|
||||||
COBJS += sys_info.o
|
COBJS += sys_info.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue