New LPDDR2 + eMMC support in imx6ull bootloader and kernel

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

New LPDDR2 + eMMC support in imx6ull bootloader and kernel

Jump to solution
1,294 Views
vivekrajpara
Contributor III

Hello All,

We are doing our development work on imx6ullevk which has DDR3 with part number MT41K128M16JT-125.  Now we are trying to port our development to final product board which has MT29PZZZ4D4BKESK-18  (LPDDR2 + eMMC) from the same vendor, Micron. 

We need help for getting uboot and kernel up with this new LPDDR + eMMC chip. 

From initial investigation, we found that parameters of structures defined in mx6-ddr.h like mx6_lpddr2_cfg, mx6_ddr_sysinfo and mx6_mmdc_calibration needs to be changed for new DDR. 

With following patch using as reference we changed these parameters. 

[U-Boot] [RFC PATCH 1/9] mx6: Add board mx6memcal for use in validating DDR 

Can anyone please guide us on following questions

-> Apart from this change, are there any other changes required to run U-Boot for new LPDDR2?

-> What changes would be require for adding support for new LPDDR2 in linux kernel?

-> What changes require for supporting new eMMC in imx6ull U-Boot and Kernel?

Best Regards, 

Vivek

Labels (2)
0 Kudos
1 Solution
729 Views
igorpadykov
NXP Employee
NXP Employee

Hi vivek

for new ddr its settings can found using script aid

i.MX6ULL_LPDDR2_Script_Aid 

and test with ddr tester

https://community.freescale.com/docs/DOC-105652 

New calibration coefficients found from tester should be placed in

uboot/../board_name/*.cfg file. Also check uboot/include/configs/board_name.inc.

In linux kernel no additinal changes for emmc, lpddr2 are needed.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

3 Replies
730 Views
igorpadykov
NXP Employee
NXP Employee

Hi vivek

for new ddr its settings can found using script aid

i.MX6ULL_LPDDR2_Script_Aid 

and test with ddr tester

https://community.freescale.com/docs/DOC-105652 

New calibration coefficients found from tester should be placed in

uboot/../board_name/*.cfg file. Also check uboot/include/configs/board_name.inc.

In linux kernel no additinal changes for emmc, lpddr2 are needed.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

729 Views
vivekrajpara
Contributor III

Hi Igor,

Thank you for quick reply. 

I have understood given xls and stress tool and updated .cfg as per new LPDDR2. It helped to change uboot for LPDDR.

I will try Stress Tool  and then will check these changes in our final board.

Thanks,

Vivek

0 Kudos
729 Views
vivekrajpara
Contributor III

Hi Igor,

While further looking in code, mx6_lpddr2_cfg, mx6_ddr_sysinfo and mx6_mmdc_calibration structures are only used when SPL boot is used. While making normal Uboot, these structures are not used.

So it seems only changing imximage.cfg will take care of new LPDDR2 for Uboot.

Can you please let me know this understanding correct?

Thanks & Regards,

Vivek

0 Kudos