arm: support very early callback into board functions

Due to changes of the order of initialization of
the ARM-specfic memory management code in 3.0, it
is necessary to create a way to call platform specific
code earlier than is currently possible.

Change-Id: I77dae10c85085358f7240889a50b78b07d5af6d1
Signed-off-by: Larry Bassel <lbassel@codeaurora.org>
(cherry picked from commit f81fb5655af9aaf573cb11b9a64e0a826fa580e2)

Conflicts:

	arch/arm/kernel/setup.c
This commit is contained in:
Larry Bassel 2011-10-14 10:40:11 -07:00 committed by Stephen Boyd
parent 2b50aa3639
commit 0672ddbaee
2 changed files with 4 additions and 0 deletions

View file

@ -39,6 +39,7 @@ struct machine_desc {
struct meminfo *);
void (*reserve)(void);/* reserve mem blocks */
void (*map_io)(void);/* IO mapping function */
void (*init_very_early)(void);
void (*init_early)(void);
void (*init_irq)(void);
struct sys_timer *timer; /* system tick timer */

View file

@ -961,6 +961,9 @@ void __init setup_arch(char **cmdline_p)
parse_early_param();
if (mdesc->init_very_early)
mdesc->init_very_early();
sort(&meminfo.bank, meminfo.nr_banks, sizeof(meminfo.bank[0]), meminfo_cmp, NULL);
sanity_check_meminfo();
arm_memblock_init(&meminfo, mdesc);