public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 0/4] clk-imx8mm: Reduce SPL binary size
@ 2022-09-26 16:40 Fabio Estevam
  2022-09-26 16:40 ` [PATCH 1/4] clk-imx8mm: Only build PWM clocks in non-SPL code Fabio Estevam
                   ` (4 more replies)
  0 siblings, 5 replies; 14+ messages in thread
From: Fabio Estevam @ 2022-09-26 16:40 UTC (permalink / raw)
  To: sbabic; +Cc: marex, uboot-imx, aford173, u-boot, Fabio Estevam

Reduce the SPL binary size by building some clocks only for the
non-SPL case, such as Ethernet and PWM and by also building ECSPI
and QSPI when their respective drivers are enabled.

On a imx8mm_evk_defconfig the following SPL binary reduction was
observed.

Prior to this series:

$ aarch64-linux-gnu-readelf -s spl/u-boot-spl | sort -nk 3 | grep imx8mm_clk_probe
   766: 00000000007f34c8  4100 FUNC    LOCAL  DEFAULT    1 imx8mm_clk_probe

After this series:

$ aarch64-linux-gnu-readelf -s spl/u-boot-spl | sort -nk 3 | grep imx8mm_clk_probe
   766: 00000000007f34c8  3316 FUNC    LOCAL  DEFAULT    1 imx8mm_clk_probe

Total reduction: 4100 - 3316 = 784 bytes.

Fabio Estevam (4):
  clk-imx8mm: Only build PWM clocks in non-SPL code
  clk-imx8mm: Move CLK_ENET_AXI to the non-SPL section
  clk-imx8mm: Only build ecspi clocks when CONFIG_DM_SPI=y
  clk-imx8mm: Only build QSPI clocks when CONFIG_NXP_FSPI=y

 drivers/clk/imx/clk-imx8mm.c | 86 ++++++++++++++++++++----------------
 1 file changed, 49 insertions(+), 37 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-10-21 11:50 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-26 16:40 [PATCH 0/4] clk-imx8mm: Reduce SPL binary size Fabio Estevam
2022-09-26 16:40 ` [PATCH 1/4] clk-imx8mm: Only build PWM clocks in non-SPL code Fabio Estevam
2022-10-21 11:43   ` sbabic
2022-09-26 16:40 ` [PATCH 2/4] clk-imx8mm: Move CLK_ENET_AXI to the non-SPL section Fabio Estevam
2022-10-21 11:41   ` sbabic
2022-09-26 16:40 ` [PATCH 3/4] clk-imx8mm: Only build ecspi clocks when CONFIG_DM_SPI=y Fabio Estevam
2022-10-21 11:42   ` sbabic
2022-09-26 16:40 ` [PATCH 4/4] clk-imx8mm: Only build QSPI clocks when CONFIG_NXP_FSPI=y Fabio Estevam
2022-10-21 11:42   ` sbabic
2022-09-27 12:24 ` [PATCH 0/4] clk-imx8mm: Reduce SPL binary size Michael Nazzareno Trimarchi
2022-09-27 12:29   ` Fabio Estevam
2022-09-27 13:38     ` Michael Nazzareno Trimarchi
2022-09-27 13:44       ` Fabio Estevam
2022-09-27 13:46         ` Michael Nazzareno Trimarchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox