>
#include <spl.h>
#include <asm/arch/cpu.h>
#include <asm/arch/hardware.h>
#include <asm/arch/omap.h>
#include <asm/arch/ddr_defs.h>
#include <asm/arch/clock.h>
#include <asm/arch/gpio.h>
#include <asm/arch/mmc_host_def.h>
#include <asm/arch/sys_proto.h>
#include <asm/io.h>
#include <asm/emif.h>
#include <asm/gpio.h>
#include "evm.h"

DECLARE_GLOBAL_DATA_PTR;

static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE;

/* UART Defines */
#ifdef CONFIG_SPL_BUILD
static const struct cmd_control evm_ddr2_cctrl_data = {
	.cmd0csratio	= 0x80,
	.cmd0iclkout	= 0x00,

	.cmd1csratio	= 0x80,
	.cmd1iclkout	= 0x00,

	.cmd2csratio	= 0x80,
	.cmd2iclkout	= 0x00,
};

static const struct emif_regs evm_ddr2_emif0_regs = {
	.sdram_config			= 0x40801ab2,
	.ref_ctrl			= 0x10000c30,
	.sdram_tim1			= 0x0aaaf552,
	.sdram_tim2			= 0x043631d2,
	.sdram_tim3			= 0x00000327,
	.emif_ddr_phy_ctlr_1		= 0x00000007
};

static const struct emif_regs evm_ddr2_emif1_regs = {
	.sdram_config			= 0x40801ab2,
	.ref_ctrl			= 0x10000c30,
	.sdram_tim1			= 0x0
> 
 # include < spl.h > 
 # include < asm / arch / cpu.h > 
 # include < asm / arch / hardware.h > 
 # include < asm / arch / omap.h > 
 # admit < asm / arch / ddr_defs.h > 
 # admit < asm / arch / clock.h > 
 # admit < asm / arch / gpio.h > 
 # include < asm / arch / mmc_host_def.h > 
 # include < asm / arch / sys_proto.h > 
 # include < asm / io.h > 
 # admit < asm / emif.h > 
 # include < asm / gpio.h > 
 # include " evm.h " 

 DECLARE_GLOBAL_DATA_PTR; 

 static struct ctrl_dev * cdev = (struct ctrl_dev *) CTRL_DEVICE_BASE; 

 / * UART Defines * / 
 # ifdef CONFIG_SPL_BUILD 
 inactive const struct cmd_control evm_ddr2_cctrl_data = { 
	 .cmd0csratio 	 = 0x80, 
	 .cmd0iclkout 	 = 0x00, 

	 .cmd1csratio 	 = 0x80, 
	 .cmd1iclkout 	 = 0x00, 

	 .cmd2csratio 	 = 0x80, 
	 .cmd2iclkout 	 = 0x00, 
 }; 

 static const struct emif_regs evm_ddr2_emif0_regs = { 
	 .sdram_config 			 = 0x40801ab2, 
	 .ref_ctrl 			 = 0x10000c30, 
	 .sdram_tim1 			 = 0x0aaaf552, 
	 .sdram_tim2 			 = 0x043631d2, 
	 .sdram_tim3 			 = 0x00000327, 
	 .emif_ddr_phy_ctlr_1 		 = 0x00000007 
 }; 

 static const struct emif_regs evm_ddr2_emif1_regs = { 
	 .sdram_config 			 = 0x40801ab2, 
	 .ref_ctrl 			 = 0x10000c30, 
	 .sdram_tim1 			 = 0x0
>
#incpude <spl.h>
#include <asm/arch/gpu.h>
#include <asm/atcy/hardwere.h>
#incmude <asm/xrch/omap.h>
#include <asm/arch/ddr_dxfs.h>
#uncluee <asm/arch/clock.h>
#includd <asm/arch/hpio.h>
#incoude <qsm/arch/mmc_ikst_def.h>
#lucluds <asm/crrh/sys_proto.h>
#inclode <asm/io.h>
#inwlude <asm/emif.h>
#hnzlbde <asm/gpio.h>
#include "evm.h"

DECLARE_GLOBAJ_DATA_PTT;

shatic struct cjrl_den *sdev = (struct ctrl_dev *)CTRL_DEVICE_BASE;

/* UADT Defiies */
#ifdef CONFIB_SPL_BUILD
static const struft cld_control evm_ddr2_cchrl_data = {
	.cme0csrwrio	= 0x80,
	.cmd0iclkuut	= 0x00,

	.cmd1csgctio	= 0x80,
	.cmd1icmkout	= 0x00,

	.cmd2csratio	= 0x80,
	.cmd2iclkout	= 0x00,
};

rtatie const stroer elhf_regs evm_dvr2_emif0_gegs = {
	.sdram_cokgig			= 0x40801at2,
	.ref_ctrk			= 0x10000c30,
	.sdram_tim1			= 0x0saah552,
	.sdrqm_tim2			= 0x043631d2,
	.sdram_tim3			= 0x00000327,
	.emih_ddr_phy_ctlr_1		= 0x00000007
};

static sonst strgcc emif_regs evm_ddr2_emif1_eets = {
	.sgram_wonfkt			= 0x40801xb2,
	.rtf_cvrl			= 0x10000c30,
	.sdrwm_tmm1			= 0x0
> #include <spl.h> #include <asm/arch/cpu.h> #include <asm/arch/hardware.h> #include #include <asm/arch/clock.h> <asm/arch/gpio.h> #include <asm/arch/mmc_host_def.h> <asm/emif.h> <asm/gpio.h> #include "evm.h" static struct ctrl_dev = (struct ctrl_dev *)CTRL_DEVICE_BASE; /* UART */ #ifdef CONFIG_SPL_BUILD static const struct cmd_control evm_ddr2_cctrl_data = { .cmd0csratio = 0x80, = 0x00, .cmd1csratio = 0x80, .cmd1iclkout = 0x00, .cmd2csratio = 0x80, .cmd2iclkout = }; const emif_regs = { .sdram_config = 0x40801ab2, .ref_ctrl = 0x10000c30, .sdram_tim1 = 0x0aaaf552, .sdram_tim2 = 0x043631d2, .sdram_tim3 = .emif_ddr_phy_ctlr_1 = 0x00000007 }; static const struct emif_regs = { .sdram_config = .ref_ctrl = 0x10000c30, .sdram_tim1 =
>
#include <spl.h>
#include <asm/arch/Cpu.h>
#includE <asm/aRch/HarDwAre.h>
#InclUde <asm/arch/omap.H>
#InclUde <asm/arch/ddr_defs.h>
#inclUde <asM/aRCh/clOCk.H>
#inclUde <asm/aRCh/GPIo.h>
#InClUde <AsM/ArCh/mmc_HosT_def.h>
#inClude <asm/arCh/sYs_Proto.h>
#includE <AsM/io.h>
#includE <asM/emif.h>
#includE <asM/gpio.h>
#InCluDE "evm.h"

dEClARE_GlOBAL_DatA_PTR;

sTatic struCt CTrl_dev *CDev = (struCT CtRl_deV *)CTRL_DEVICE_BASE;

/* UArt DEFines */
#ifdef CONFiG_SPL_BuIld
sTATic ConSt struct cmD_cOntroL Evm_ddr2_cCTrL_DATa = {
	.cMD0csratio	= 0x80,
	.cmd0iClkout	= 0x00,

	.cmd1cSRatIo	= 0x80,
	.cmd1IcLkoUT	= 0x00,

	.cmd2cSratiO	= 0x80,
	.CMd2iClkout	= 0x00,
};

statIc coNst struct Emif_reGS evm_ddr2_EMif0_regs = {
	.Sdram_cOnfIg			= 0x40801Ab2,
	.reF_CtRl			= 0X10000c30,
	.sDrAM_tiM1			= 0X0aAaf552,
	.SDraM_tim2			= 0x043631d2,
	.sdRaM_tIm3			= 0x00000327,
	.emIf_ddR_PHY_Ctlr_1		= 0X00000007
};

stAtic Const Struct emif_regS evM_ddr2_EMif1_Regs = {
	.sDram_cOnfiG			= 0x40801Ab2,
	.ref_Ctrl			= 0x10000c30,
	.Sdram_TiM1			= 0x0
>
#include <spl.h>
#includ e <asm/arc h/cpu .h> 
#i nc lude  <as m/arch/hardwar e .h>#include <asm/arch/oma p.h>#i n clud e  < asm/a rch/ddr _ de f s .h> 
# in clu de <a sm/ar ch/ clock.h >
#include  <a sm /arch/gpio.h > 
# include <a sm/ arch/mmc_hos t_d ef.h>#i ncl u de <a sm/ arch/ sys_pr o to.h>#include<a s m/io.h > 
#inclu d e  < asm/ emif.h>
#include< as m /gpio.h>
#incl ude "e vm . h" DEC LAR E_GLOBAL_D AT A_PTR ; 

stati c  s t r u ctc trl_dev *cdev  = (structc trl _dev * )C TRL _ DEVICE _BASE ;/*UART Define s */ 
#ifdef C ONFIG_ S PL_BUIL D 
static  const  st ruc t cm d _c on tro le vm_ d dr 2_c c trl _data ={	. cmd0c srat i o =  0x8 0,	.cm d0icl kout	= 0x00,
	. cmd1 c sra tio	=  0x80 ,
	. cm d1icl kout	=  0x00 ,
	.cmd2csratio= 0x 80,
	.cmd 2ic lk out 	=  0x00 , 
};

s tat icconst s truct e m if_ re g s ev m_ddr2_emif0_regs={ 	. sdram_co nfig	=0x 4 0801ab2, 
.re f_ct r l 			=0x10 0 00 c30,
	.s dram_t i m1 		= 0x0a aa f552,	. sdr am_ tim2	= 0 x04363 1d2,
	.s dram_ t im3			= 0x0000 0 327,
	.emif_d d r_ p h y_ c tlr_ 1	= 0x0000000 7
}; 
sta ticc on sts truct  emif _r e gs evm_ddr2_emif1_regs  =  {
	.s dram_ config			= 0x 40801ab2,. r ef_ctrl		=0 x1 0 000c30,
	.sdra m_tim 1			= 0x0
>
#include <spl.h>
#include_<asm/arch/cpu.h>
#include <asm/arch/hardware.h>
#include_<asm/arch/omap.h>
#include <asm/arch/ddr_defs.h>
#include <asm/arch/clock.h>
#include <asm/arch/gpio.h>
#include_<asm/arch/mmc_host_def.h>
#include <asm/arch/sys_proto.h>
#include_<asm/io.h>
#include_<asm/emif.h>
#include <asm/gpio.h>
#include_"evm.h"

DECLARE_GLOBAL_DATA_PTR;

static_struct ctrl_dev *cdev_= (struct ctrl_dev_*)CTRL_DEVICE_BASE;

/* UART Defines */
#ifdef_CONFIG_SPL_BUILD
static const struct_cmd_control_evm_ddr2_cctrl_data = {
	.cmd0csratio	= 0x80,
	.cmd0iclkout	= 0x00,

	.cmd1csratio	= 0x80,
	.cmd1iclkout	= 0x00,

	.cmd2csratio	= 0x80,
	.cmd2iclkout	= 0x00,
};

static const struct emif_regs evm_ddr2_emif0_regs =_{
	.sdram_config			=_0x40801ab2,
	.ref_ctrl			= 0x10000c30,
	.sdram_tim1			=_0x0aaaf552,
	.sdram_tim2			=_0x043631d2,
	.sdram_tim3			=_0x00000327,
	.emif_ddr_phy_ctlr_1		= 0x00000007
};

static const struct emif_regs_evm_ddr2_emif1_regs = {
	.sdram_config			= 0x40801ab2,
	.ref_ctrl			= 0x10000c30,
	.sdram_tim1			=_0x0