9
0
Fork 0
barebox/arch
Sascha Hauer 295f0b23b5 ARM: mvebu: Simplify memory init order
The initialisation of the memory nodes on mvebu is a bit
compilcated:

pure_initcall(mvebu_memory_fixup_register)
	of_register_fixup(mvebu_memory_of_fixup, NULL)
core_initcall(kirkwood_init_soc)
	mvebu_set_memory()
core_initcall(of_arm_init)
	of_fix_tree()
		mvebu_memory_of_fixup()

First a mvebu common of_fixup function is registered, then the SoC
calls mvebu_set_memory which stores the memory base and size in global
variables. Afterwards the of_fixup is executed which fixes the memory
nodes according to the global variables.

Instead register a SoC specific fixup which directly calls mvebu_set_memory
with the memory base and size as arguments:

pure_initcall(kirkwood_register_soc_fixup);
	of_register_fixup(kirkwood_init_soc, NULL);
core_initcall(of_arm_init)
	of_fix_tree()
		kirkwood_init_soc()
			mvebu_set_memory(phys_base, phys_size);

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2014-09-19 09:47:36 +02:00
..
arm ARM: mvebu: Simplify memory init order 2014-09-19 09:47:36 +02:00
blackfin Merge branch 'for-next/misc' 2014-08-07 13:13:31 +02:00
efi EFI: add missing include 2014-09-03 15:53:22 +02:00
mips Merge branch 'for-next/rtc' 2014-08-07 13:13:45 +02:00
nios2 sandbox: allow "make ARCH=sandbox allyesconfig" 2014-07-22 21:29:57 +02:00
openrisc openrisc: add barebox.lds to .gitignore 2014-09-01 14:24:51 +02:00
ppc Merge branch 'for-next/ppc' 2014-08-07 13:13:36 +02:00
sandbox consistently use the same bitops.h file 2014-07-17 07:43:58 +02:00
x86 lib: Add bitmap functions from kernel 2014-07-17 23:01:15 +02:00