[U-Boot] [PATCH v2 0/3] ddr: vybrid: Support for vf610 built-in DDR3 memory calibration

Lukasz Majewski
2019-01-02T11:28:19Z

Hi Fabio, Stefano,

> This patch series provides code to perform read leveling - RDLVL,
> which is adjusting the DQS strobe in relation to the DQ signals so
> that the strobe edge is centered in the window of valid read data.
>
> The code is based on Vybrid's Reference Manual's:
> "VFxxx Controller Reference Manual, Rev. 0, 10/2016", page 1600,
> 10.1.6.16.4.1 "Software Read Leveling in MC Evaluation Mode"
>
> and uses clarification provided by following NXP's community thread:
> "Vybrid: About DDR leveling feature on DDRMC."
> https://community.nxp.com/thread/395323
>
> It depends on a BITMAP rework patch:
> usb: composite: Move bitmap related operations
> to ./include/linux/bitmap.h http://patchwork.ozlabs.org/patch/1006448/
>

The above patch has found its way to main line, so there is no
obstacles to pull this code.

Moreover, some Stefan's patches:
[U-Boot,v1,0/4] ddr: vybrid: various fixes

http://patchwork.ozlabs.org/cover/1007547/

Are also related to DDR_MC setup on Vybrid and fix/cleanup some issues.

>
> Changes in v2:
> - CR93_SWLVL_EXIT -> CR94_SWLVL_EXIT (EXIT is in CR94)
> - Add more defines to imx-regs.h (moved from *-calibration.h)
> - CR93_SWLVL_EXIT -> CR94_SWLVL_EXIT (EXIT is in CR94)
> - Update Kconfig information regarding DDRMC_VF610_CALIBRATION
> - Update ddrmc-vf610-calibration. comment
> - Update code after extending imx-regs.h
> - Remove not needed #ifdef
>
> Lukasz Majewski (3):
> ddr: vybrid: Add DDRMC calibration related registers (DQS to DQ)
> ddr: vybrid: Provide code to perform on-boot calibration
> ddr: vybrid: Add calibration code to memory controler's (DDRMC)
> setup code
>
> arch/arm/include/asm/arch-vf610/imx-regs.h | 14 +-
> arch/arm/mach-imx/Kconfig | 12 +
> arch/arm/mach-imx/Makefile | 1 +
> arch/arm/mach-imx/ddrmc-vf610-calibration.c | 342
> ++++++++++++++++++++++++++++
> arch/arm/mach-imx/ddrmc-vf610-calibration.h | 45 ++++
> arch/arm/mach-imx/ddrmc-vf610.c | 5 + 6 files changed,
> 418 insertions(+), 1 deletion(-) create mode 100644
> arch/arm/mach-imx/ddrmc-vf610-calibration.c create mode 100644
> arch/arm/mach-imx/ddrmc-vf610-calibration.h
>

Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190102/0f609e40/attachment.sig>