]> code.ossystems Code Review - bsp/u-boot.git/commit
mx6: clock: Fix the logic for reading axi_alt_sel
authorFabio Estevam <fabio.estevam@nxp.com>
Mon, 18 Jul 2016 13:19:28 +0000 (10:19 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Wed, 20 Jul 2016 21:07:00 +0000 (18:07 -0300)
commit6dec211862ac03a7b1bb5c4d7c76cececf20318b
tree5ba0d00a625c364870b546ab5333e21ede7d3eaf
parent68f2c3ecf585e723fbc6f6612506c47d1232c341
mx6: clock: Fix the logic for reading axi_alt_sel

According to the IMX6DQRM Reference Manual, the description
of bit 7 (axi_alt_sel) of the CCM_CBCDR register is:

"AXI alternative clock select
0 pll2 396MHz PFD will be selected as alternative clock for AXI root clock
1 pll3 540MHz PFD will be selected as alternative clock for AXI root clock "

The current logic is inverted, so fix it to match the reference manual.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
arch/arm/cpu/armv7/mx6/clock.c