[PATCH v2] clk: imx: don't build i.MX/RTxxxx code for all users of CCF
Peng Fan
peng.fan at nxp.com
Tue May 19 05:01:52 CEST 2026
> Subject: [PATCH v2] clk: imx: don't build i.MX/RTxxxx code for all users
> of CCF
>
> From: Alexander Sverdlin <alexander.sverdlin at siemens.com>
>
> When commit 1d7993d1d0ef
> ("clk: Port Linux common clock framework [CCF] for imx6q to U-boot
> (tag: v5.1.12)") introduced the parts of Linux Common Clock
> Framework, it was done for i.MX6 only and even had "depends on
> SPL_CLK_IMX6Q" conditions. Since commit
> ccab06689aa2 ("clk: imx: expose CCF entry for all") the framework can
> be re-used with SoCs of other vendors (say, TI), but NXP SoC-specific
> code is still being build. Is is especially problematic for size-constrained
Typo: Is->It
> SPL images on TI AM62x.
>
> Make the build of the i.MX/RTxxxx code not only dependent on
> CONFIG_$(PHASE_)CLK_CCF, but also on CONFIG_MACH_IMX options
> which shall cover the i.MX platform users.
>
> This saves 2264 bytes on 32-bit ARM platforms [using CCF].
>
> Signed-off-by: Alexander Sverdlin <alexander.sverdlin at siemens.com>
LGTM: Reviewed-by: Peng Fan <peng.fan at nxp.com>
More information about the U-Boot
mailing list