9
0
Fork 0
barebox/arch/arm
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
..
boards Merge branch 'for-next/marvell' 2014-09-05 07:32:56 +02:00
configs Merge branch 'for-next/usb' 2014-08-07 13:13:47 +02:00
cpu Merge branch 'for-next/marvell' 2014-08-07 06:14:59 +02:00
dts dts:imx6:pfla02: Fix SPI NOR for phyFLEX-i.MX6 2014-09-08 07:40:56 +02:00
include/asm arm: add errata workarounds 2014-06-26 08:05:21 +02:00
lib Merge branch 'for-next/metadata' 2014-08-07 06:15:16 +02:00
mach-at91 ARM: AT91: Make gpio mux functions inline 2014-09-09 09:52:21 +02:00
mach-bcm2835 video: add a BCM2835 framebuffer driver 2013-11-06 09:59:05 +01:00
mach-clps711x ARM: clps711x: Remove unused UART bit definitions 2014-06-06 06:35:43 +02:00
mach-davinci Documentation: remove doxygen documentation 2014-06-26 10:09:52 +02:00
mach-digic ARM: DIGIC: add Canon PowerShot A1100 IS support 2014-07-29 15:08:29 +02:00
mach-ep93xx Merge branch 'for-next/boardinfo' 2013-09-05 10:39:22 +02:00
mach-highbank treewide: remove address of the Free Software Foundation 2014-06-11 08:35:25 +02:00
mach-imx arm: mach-imx: add MMDC and CCM register defines for use in DCD 2014-09-01 14:24:51 +02:00
mach-mvebu ARM: mvebu: Simplify memory init order 2014-09-19 09:47:36 +02:00
mach-mxs treewide: remove address of the Free Software Foundation 2014-06-11 08:35:25 +02:00
mach-netx commands: harmonize in-barebox documentation 2014-05-14 10:03:43 +02:00
mach-nomadik ARM: remove asm/hardware.h 2013-11-08 15:44:13 +01:00
mach-omap Merge branch 'for-next/metadata' 2014-08-07 06:15:16 +02:00
mach-pxa reset_source: rename set_reset_source to reset_source_set 2014-01-29 12:12:17 +01:00
mach-rockchip ARM: Rockchip: switch to multiimage support 2014-04-29 08:40:40 +02:00
mach-samsung Documentation: remove doxygen documentation 2014-06-26 10:09:52 +02:00
mach-socfpga x86: ns16550: Rework driver to allow for x86 I/O space 2014-04-09 19:31:42 +02:00
mach-tegra arm: tegra: enable ARM errata workarounds 2014-06-26 08:05:21 +02:00
mach-uemd ARM: uemd: add mb7707 board support 2014-05-26 17:51:22 +02:00
mach-versatile ARM: versatile: switch to devicetree support 2014-06-23 08:45:56 +02:00
mach-vexpress vexpress: mmc support 2013-10-22 16:49:48 +02:00
mach-zynq clk: gate: add flags argument to clock gate constructor 2014-04-29 08:15:24 +02:00
pbl scripts: fix_size: check magic 2014-01-31 18:51:49 +01:00
tools arm: Update mach-types 2013-09-27 10:56:37 +02:00
Kconfig pinctrl: at91: add pinctrl driver 2014-09-04 11:25:04 +02:00
Makefile ARM: add Canon A1100 ROM image generation 2014-08-01 15:40:41 +02:00