MLK-16689: Add DDR PHY training flow for different frequency
authorBai Ping <ping.bai@nxp.com>
Wed, 18 Oct 2017 05:36:13 +0000 (13:36 +0800)
committerJason Liu <jason.hui.liu@nxp.com>
Thu, 2 Nov 2017 18:37:25 +0000 (02:37 +0800)
commit4503e60e36f21345ff48ebfaab562b80bfe2ecb9
tree503ae956fe6932b147e9fad729a5965934e68276
parentdeced1b51caf5c09fff5f96dec6b6972e99072ea
MLK-16689: Add DDR PHY training flow for different frequency

On our i.MX8MQ EVK board, we will support three frequency point:
    1. 3200mts, DDRC core clock is 800MHz;
    2. 400mts, DDRC core clock is 100MHz;
    3. 100mts, DDRC core clock is 25MHz.

The 1D training flow need to be run once for each frequency. The
PHY training updated to support training different frequency point.

Additionally, the DDRC's registers of other frequency also need to
be configured.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
board/freescale/imx8mq_evk/ddr/lpddr4_pub_train_0608_simple.c
board/freescale/imx8mq_evk/ddr/train1d.c