u-boot/board/toradex/colibri_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
..
colibri_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 arm: imx: initial support for colibri imx6 2016-12-16 10:03:43 +01:00
MAINTAINERS toradex: take over maintainership 2021-10-20 17:49:59 +02:00
Makefile arm: imx: initial support for colibri imx6 2016-12-16 10:03:43 +01:00
pf0100.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
pf0100.h board: colibri_imx6: check for and report ecc errors in fuses 2019-04-13 20:30:09 +02:00
pf0100_otp.inc colibri_imx6: change pmic fusing according to hw 1.1 requirements 2019-04-13 20:30:09 +02:00