]> git.itanic.dy.fi Git - linux-stable/commit
mips: ralink: rt3883: introduce 'soc_device' initialization
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Mon, 27 Feb 2023 10:58:00 +0000 (11:58 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 14 Mar 2023 16:13:50 +0000 (17:13 +0100)
commit2165248f68b5f3e27faac844795e6691e1ee7777
treeaa2cb3cbe886032c5037e5ee734a8b9295ab1d63
parent89f9b3041e7eddfcfa7260d7e0d2846b21f316d1
mips: ralink: rt3883: introduce 'soc_device' initialization

RT3883 SoC have its own 'ralink_soc_info' structure with some
information about the soc itself. In order to be able to retrieve this
information from driver code and avoid architecture dependencies for
retrieving these details introduce this 'soc_device'. Set 'data' pointer
points to the struct 'ralink_soc_info' to be able to export also current
soc information using this mechanism. We need to select 'SOC_BUS' in
Kconfig configuration for these SoCs.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/ralink/Kconfig
arch/mips/ralink/rt3883.c