u-boot/arch/arm/mach-imx/imx8m
Rasmus Villemoes 2f3cf91693 ARM: imx: imx8mp: fix enable_i2c_clk
In order for i2c_num==4 and 5 to stay invalid for non-imx8mp SOCs, the
i2c_ccgr[] array must be sized by the number of initializers present,
not with a hard-coded 6 which would implicitly initialize the last two
elements with zeroes.

Also, the bounds check is off-by-one.

Fixes: c92c3a4453 "ARM: imx: imx8mp: Enable support for i2c5 and i2c6 on i.MX8MP"
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
2023-03-30 13:47:04 +02:00
..
clock_imx8mm.c ARM: imx: imx8mp: fix enable_i2c_clk 2023-03-30 13:47:04 +02:00
clock_imx8mq.c arm: imx: imx8mq: add support to get values for more clocks 2022-02-05 13:38:38 +01:00
clock_slice.c imx8m: update clock root and fix core_sel 2020-05-01 13:46:21 +02:00
imximage-8mm-lpddr4.cfg imx: imx8mm-icore: migrate to use BINMAN 2022-07-26 11:29:02 +02:00
imximage-8mn-ddr4.cfg imx: Don't define __ASSEMBLY__ in source files 2022-02-08 23:07:58 -05:00
imximage-8mn-lpddr4.cfg imx: Don't define __ASSEMBLY__ in source files 2022-02-08 23:07:58 -05:00
imximage-8mp-lpddr4.cfg imx: Don't define __ASSEMBLY__ in source files 2022-02-08 23:07:58 -05:00
imximage.cfg imx: Don't define __ASSEMBLY__ in source files 2022-02-08 23:07:58 -05:00
Kconfig configs: imx8m: Prepare imx8m-beacon boards for HAB support 2023-01-31 18:08:23 +01:00
lowlevel_init.S imx8m: lowlevel_init: tune alignment 2021-01-23 11:30:31 +01:00
Makefile arm: imx: imx8m: Add basic PSCI provider implementation 2023-01-31 15:46:40 +01:00
psci.c arm: imx: imx8m: Add basic PSCI provider implementation 2023-01-31 15:46:40 +01:00
soc.c arm: imx: imx8m: Program CSU and TZASC if PSCI provider 2023-01-31 15:46:40 +01:00