Home
last modified time | relevance | path

Searched hist:"7 f17fb7400ff091dd48f86977655c6a57d06b17c" (Results 1 – 2 of 2) sorted by relevance

/rk3399_rockchip-uboot/board/kosagi/novena/
H A Dnovena_spl.c7f17fb7400ff091dd48f86977655c6a57d06b17c Sun Oct 30 23:33:48 UTC 2016 Eric Nelson <eric@nelint.com> mx6: ddr: pass mx6_ddr_sysinfo to calibration routines

The DDR calibration routines have scattered support for bus
widths other than 64-bits:

-- The mmdc_do_write_level_calibration() routine assumes the
presence of PHY1, and
-- The mmdc_do_dqs_calibration() routine tries to determine
whether one or two DDR PHYs are active by reading MDCTL.

Since a caller of these routines must have a valid struct mx6_ddr_sysinfo
for use in calling mx6_dram_cfg(), and the bus width is available in the
"dsize" field, use this structure to inform the calibration routines which
PHYs are active.

This allows the use of the DDR calibration routines on CPU variants
like i.MX6SL that only have a single MMDC port.

Signed-off-by: Eric Nelson <eric@nelint.com>
Reviewed-by: Marek Vasut <marex@denx.de>
/rk3399_rockchip-uboot/arch/arm/include/asm/arch-mx6/
H A Dmx6-ddr.h7f17fb7400ff091dd48f86977655c6a57d06b17c Sun Oct 30 23:33:48 UTC 2016 Eric Nelson <eric@nelint.com> mx6: ddr: pass mx6_ddr_sysinfo to calibration routines

The DDR calibration routines have scattered support for bus
widths other than 64-bits:

-- The mmdc_do_write_level_calibration() routine assumes the
presence of PHY1, and
-- The mmdc_do_dqs_calibration() routine tries to determine
whether one or two DDR PHYs are active by reading MDCTL.

Since a caller of these routines must have a valid struct mx6_ddr_sysinfo
for use in calling mx6_dram_cfg(), and the bus width is available in the
"dsize" field, use this structure to inform the calibration routines which
PHYs are active.

This allows the use of the DDR calibration routines on CPU variants
like i.MX6SL that only have a single MMDC port.

Signed-off-by: Eric Nelson <eric@nelint.com>
Reviewed-by: Marek Vasut <marex@denx.de>