u-boot/board/toradex
Francesco Dolcini d4cd19ded8 toradex: apalis/colibri_imx6: Fix CLKO1/CLKO2 output
Set CLK01 and CLK02 to 24MHz and enable it in CCM_CCOSR register.

This clock is used by both the audio codec (CLKO1) and by the CSI camera
(CLKO2) and is expected to be 24MHz.

Despite the wrong 16.5MHz there was no real issue because of the wrong
frequency since Linux reconfigures the clocks afterward, however this
was triggering an issue with noise coming from the SGTL5000 audio codec.

The problem is that the SGTL5000 does not have a reset pin and after it
is configured if the input MCLK clock is disabled it produces a constant
noise on its output, this was happening on software reboot.

Forcing the clock to be enabled in U-Boot prevent the problem by making
sure that the clock is always available, without this change as soon as
Linux was changing the clock tree (setting clk_out_sel=1 without setting
clko2_en=1) the noise would start till the actual clock was enabled
(clko2_en=1) during the SGTL5000 driver probe.

Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Reviewed-by: Fabio Estevam <festevam@denx.de>
2022-06-28 15:24:31 +02:00
..
apalis-imx8 board: apalis-imx8: add new 8gb product variant 2022-06-14 21:25:26 +02:00
apalis-tk1 board: apalis_t30/tk1/colibri_t20/t30: integrate mac address via dt 2022-06-13 15:31:15 -07:00
apalis_imx6 toradex: apalis/colibri_imx6: Fix CLKO1/CLKO2 output 2022-06-28 15:24:31 +02:00
apalis_t30 board: apalis_t30/tk1/colibri_t20/t30: integrate mac address via dt 2022-06-13 15:31:15 -07:00
colibri-imx6ull board: colibri-imx6ull: fix detecting ethernet phy 2022-04-12 19:10:44 +02:00
colibri-imx8x imx: Don't define __ASSEMBLY__ in source files 2022-02-08 23:07:58 -05:00
colibri_imx6 toradex: apalis/colibri_imx6: Fix CLKO1/CLKO2 output 2022-06-28 15:24:31 +02:00
colibri_imx7 board: colibri_imx7: fix usb start on solo 2022-04-21 12:44:23 +02:00
colibri_t20 Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-tegra 2022-06-14 12:59:12 -04:00
colibri_t30 board: apalis_t30/tk1/colibri_t20/t30: integrate mac address via dt 2022-06-13 15:31:15 -07:00
colibri_vf video: fsl: colibri_vf: Drop FSL DCU driver 2022-03-28 20:18:07 +02:00
common toradex: tdx-cfg-block: add new 8gb apalis-imx8 2022-06-14 21:25:26 +02:00
verdin-imx8mm ARM: imx8mm: verdin-imx8mm: fix board hang in spl 2022-05-20 12:36:48 +02:00
verdin-imx8mp imx: verdin-imx8mm/p: cleanup board watchdog code 2022-05-20 09:30:29 +02:00