ARM: sunxi: mc-smp: Split out SoC-specific device node lookup sequence
authorChen-Yu Tsai <wens@csie.org>
Thu, 8 Mar 2018 15:00:12 +0000 (23:00 +0800)
committerChen-Yu Tsai <wens@csie.org>
Sat, 10 Mar 2018 08:14:57 +0000 (16:14 +0800)
commit99e3a1e6fedd3b8713a1398772ad7da3796c6908
treebc5616eec7576d10421dcbe24dbb8077c5025303
parent8591743f12636a247bdab56c8c355ea9686f2d97
ARM: sunxi: mc-smp: Split out SoC-specific device node lookup sequence

The multi-cluster SMP code maps the address spaces of several hardware
control blocks. The device nodes for them are SoC-specific. To help with
supporting other SoCs to re-use this code, these bits should be split
out to a separate function tied to the enable-method string.

This patch splits out and groups the device node lookup sequence, and
adds new data structures to have the newly created function tied to
the enable method string. This structure can also be used to encode
other differences between the SoCs.

Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
arch/arm/mach-sunxi/mc_smp.c