[PATCH 1/3] arm: imx6: move imx6_init_lowlevel to single initcall
s.hauer at pengutronix.de
Tue Jun 24 00:17:49 PDT 2014
On Tue, Jun 24, 2014 at 08:33:14AM +0200, Lucas Stach wrote:
> Instead of repeating the same lowlevel init for every board
> move it to it's own initcall.
> Avoids code bloat and shaves off almost 1.5kB of uncompressed
> barebox size for a default imx_v7_defconfig build.
> For boards wherethe hostname setup was done in the postcore
> initcall we move this to a device initcall to get it out of
> the way.
> Signed-off-by: Lucas Stach <dev at lynxeye.de>
You could also call imx6_init_lowlevel from imx6_init which is also
called at postcore_initcall time.
At the moment are boards are free to:
- replace imx6_init_lowlevel with their own version
- Call imx6_init_lowlevel earlier
I hope we won't regret this change when we get some special board.
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox