MLK-12996 imx: mx6dqp/dq: Fix SATA read/write fail after booting from SATA
authorYe Li <ye.li@nxp.com>
Thu, 28 Jul 2016 03:42:14 +0000 (11:42 +0800)
committerYe Li <ye.li@nxp.com>
Wed, 5 Apr 2017 06:04:43 +0000 (14:04 +0800)
commit70bc3dd2c40a5c5479b4aae6037e7914061a524e
tree9ca778dac58ecc6f88efc72ea3a35393fbf70d7d
parent4976f8f1adc5518135f663ef33991151be9d5067
MLK-12996 imx: mx6dqp/dq: Fix SATA read/write fail after booting from SATA

We found a issue in PLL6 ENET that changing the bit[1:0] DIV_SELECT for ENET
ref clock will impact the SATA ref 100Mhz clock.  If SATA is initialized before
this changing, SATA read/write can't work after it. And we have to re-init SATA.

The issue can reproduce on both i.MX6DQP and i.MX6DQ. IC investigation is ongoing.

This patch is an work around that moves the ENET clock setting
(enable_fec_anatop_clock) from ethernet init to board_init which is prior
than SATA initialization. So there is no PLL6 change after SATA init.

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit fd8fbf7fa0b10199ac89cd13cae851149f51accb)
board/freescale/mx6qsabreauto/mx6qsabreauto.c
board/freescale/mx6sabresd/mx6sabresd.c