9
0
Fork 0

ARM i.MX25/35: initialize barebox_loc earlier

Now that env_push_context is in a coredevice_initcall
we can initialize barebox_loc earlier so that we can
use it inside later initcalls.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
tested-by: Marc Reilly <marc@cpdesign.com.au>
This commit is contained in:
Sascha Hauer 2011-08-15 10:57:27 +02:00
parent 1e926b80bb
commit c1f8427805
1 changed files with 2 additions and 6 deletions

View File

@ -41,7 +41,7 @@
* Note also that I suspect that the boot source pins are only sampled at
* power up.
*/
static int imx_boot_save_loc(void)
static int imx_25_35_boot_save_loc(void)
{
const char *bareboxloc = NULL;
uint32_t reg;
@ -86,10 +86,6 @@ static int imx_boot_save_loc(void)
return 0;
}
/*
* This can only be called after env_push_context() has been called
* so it is a late_initcall.
*/
late_initcall(imx_boot_save_loc);
coredevice_initcall(imx_25_35_boot_save_loc);
#endif