This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5708: AM5708 Set DDR3 size

Part Number: AM5708

Hello TI

Our circuit board has been modified in hardware to have a DDR capacity of 512M, but now it has been replaced with a 1G capacity. My modifications are as follows:

board/ti/am57xx/board.c

static const struct emif_regs beagle_x15_emif1_ddr3_532mhz_emif_regs = {

	.sdram_config_init		= 0x61851B32,// o
	.sdram_config			= 0x61851B32,// o

	.sdram_config2			= 0x08000000,
	.ref_ctrl			= 0x000040F1,
	.ref_ctrl_final			= 0x00001035,
	.sdram_tim1			= 0xcccf36ab,
	.sdram_tim2			= 0x308f7fda,
	.sdram_tim3			= 0x409f88a8,
	.read_idle_ctrl			= 0x00050000,
	.zq_config			= 0x5007190b,
	.temp_alert_config		= 0x00000000,
	.emif_ddr_phy_ctlr_1_init 	= 0x0024400b,
	.emif_ddr_phy_ctlr_1		= 0x0e24400b,
	.emif_ddr_ext_phy_ctrl_1 	= 0x10040100,
	.emif_ddr_ext_phy_ctrl_2 	= 0x00910091,
	.emif_ddr_ext_phy_ctrl_3 	= 0x00950095,
	.emif_ddr_ext_phy_ctrl_4 	= 0x009b009b,
	.emif_ddr_ext_phy_ctrl_5 	= 0x009e009e,
	.emif_rd_wr_lvl_rmp_win		= 0x00000000,
	.emif_rd_wr_lvl_rmp_ctl		= 0x80000000,
	.emif_rd_wr_lvl_ctl		= 0x00000000,
	.emif_rd_wr_exec_thresh		= 0x00000305
	
};

By checking EMIF_SDRAM_CONFIG There is no problem with the configuration of the CONFIG register. However, the size of my DDR is only 512M.

How can I modify the DDR size ?

SDK Version: 04.00.00.04

uboot version : u-boot-2017.01+gitAUTOINC+9fd60700db-g9fd60700db