mx6: peripheral clock from oscillator
authorJorge Ramirez-Ortiz <jorge@foundries.io>
Fri, 23 Oct 2020 19:18:41 +0000 (21:18 +0200)
committerStefano Babic <sbabic@denx.de>
Sun, 1 Nov 2020 14:52:47 +0000 (15:52 +0100)
commit74a039403c10e460ddd668f4e907689f64b70507
tree52c0a63ec6796e53a147548c7df496044883e775
parent33d1e52a5d42772342d971d7743b1d2cb0f5e993
mx6: peripheral clock from oscillator

In order to be able to run the I2C bus at 400Khz, the chip errata[1]
recommends that the peripheral clock runs out of the 24MHz oscillator.

Systems running I2C from OP-TEE before Linux executes - for example to
access a Secure Element [2] providing the cryptographic support - expect
this clock to be configured by the bootloader [3].

[1] IMX6SLCE Rev. 5, 02/2019, ERR007805.
[2] OP-TEE: support for NXP SE05X Plug and Trust (patch on the list).
[3] OP-TEE: check the imx_i2c.c driver (imx6 patch on the list).

Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
arch/arm/mach-imx/mx6/soc.c