I try to do write leveling in Plugin Image of u-boot for imx6qp Android BSP N7.1.2_2.0.0-ga.
So make assembler macro "mx6_write_level_calibration" based on the "int mmdc_do_write_level_calibration()"
in the arch/arm/cpu/armv7/mx6.
And call it from arch/arm/include/asm/arch-mx6/mx6_plugin.S
b plugin_loop /* to connect debug session */
In Write leveling sequence, after write mmcd0->mdscr register to configure the external DDR device to enter
write-leveling mode through Load Mode Register command.
/* writel(0x00808231, &mmdc0->mdscr); */
i.MX6QP will hang-up and JTAG debug session is stopping.
To send Load Mode Register command, do I need some other setting?