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.

AM4378: EMIF Tool Issue

Part Number: AM4378
Other Parts Discussed in Thread: AM5728

Tool/software:

Hi ,
I have downloaded the EMIF tool for am4378 , i want to change the output impedence value , but after making the changes which file do we change , because when we did the same in 5728 EMIF tool , it had told what to change where in the board.c file but this one does not show it. Could you help and guide me on where to change what based on the values i change.

Regards,
Roshan Rajagopal

  • In uboot, board/ti/am43xx/board.c will have the definitions that the results from the EMIF tool should be placed.  Specifically for the impedance values, you should see a structure in that file ctrl_ioregs_ddr3 which has the definitions for the controller impedace values.  Impedances for the memory are in sdram_config.  Ensure all of the appropriate structures get updated with the tool output values.

    Regards,

    James

  • Hi james ,
    i understand board.c has the structure values but problem is the EMIF tool spreadsheet for am4378 (http://www.ti.com/lit/zip/sprac70) does not show where to write the updated values , but in the EMIF tool spreadsheet for am5728(http://www.ti.com/lit/zip/sprac36) had shown the structure as it is with the updated values. Could you let me know what values i should update from EMIF tool spreadsheet for am4378 in the board.c structure.

    Regards,
    Roshan Rajagopal

  • Roshan, the structures have similar names as the Register tab in the spreadsheet.  These are the values that would need to be updated.  For example, 

    Use this structure

    const struct ctrl_ioregs ioregs_ddr3 = {
    	.cm0ioctl		= DDR3_ADDRCTRL_IOCTRL_VALUE,
    	.cm1ioctl		= DDR3_ADDRCTRL_WD0_IOCTRL_VALUE,
    	.cm2ioctl		= DDR3_ADDRCTRL_WD1_IOCTRL_VALUE,
    	.dt0ioctl		= DDR3_DATA0_IOCTRL_VALUE,
    	.dt1ioctl		= DDR3_DATA0_IOCTRL_VALUE,
    	.dt2ioctrl		= DDR3_DATA0_IOCTRL_VALUE,
    	.dt3ioctrl		= DDR3_DATA0_IOCTRL_VALUE,
    	.emif_sdram_config_ext	= 0xc163,
    };

    With these registers

    Regards,

    James