u-boot/board/toradex/apalis_imx6
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_imx6.c toradex: apalis/colibri_imx6: Fix CLKO1/CLKO2 output 2022-06-28 15:24:31 +02:00
do_fuse.c command: Remove the cmd_tbl_t typedef 2020-05-18 18:36:55 -04:00
Kconfig Kconfig: Remove all default n/no options 2021-08-31 17:47:49 -04:00
MAINTAINERS toradex: take over maintainership 2021-10-20 17:49:59 +02:00
Makefile arm: imx: initial support for apalis imx6 2016-12-16 10:02:45 +01:00
pf0100.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pf0100.h board: apalis_imx6: check for and report ecc errors in fuses 2019-04-13 20:30:08 +02:00
pf0100_otp.inc SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00